Created
December 5, 2008 23:00
-
-
Save bradgessler/32547 to your computer and use it in GitHub Desktop.
This file contains 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 Sub | |
def name_please | |
self.class.name | |
end | |
end | |
class Super < Sub | |
end | |
super_man = Super.new | |
puts super_man.name_please |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment