Skip to content

Instantly share code, notes, and snippets.

@mackwic
Created July 16, 2015 14:32
Show Gist options
  • Save mackwic/d4fd32b0b2aefbd005b1 to your computer and use it in GitHub Desktop.
Save mackwic/d4fd32b0b2aefbd005b1 to your computer and use it in GitHub Desktop.
class Abstract
def self.StoreSnart
@snart = Snart::Pointer.new(@klass)
end
end
class Implem1
extend Abstract
@klass = Implem1
end
class Implem2
extend Abstract
@klass = Implem2
end
class Implem3
extend Abstract
@klass = Implem
end
i = Implem1.new
Abstract.StoreSnart i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment