Created
February 13, 2012 21:55
-
-
Save brainopia/1820803 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
# fun with constant resolution | |
class Magic | |
def self.const_missing(const) | |
'for children' | |
end | |
end | |
p Magic::Bunny # => for children | |
Mushroom = 'for adults' | |
p Magic::Mushroom # => for adults |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
о_О