Created
July 16, 2015 14:32
-
-
Save mackwic/d4fd32b0b2aefbd005b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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