Created
January 16, 2012 23:08
-
-
Save eegrok/1623505 to your computer and use it in GitHub Desktop.
funny ruby named class weirdness
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
| klass = Class.new | |
| # a random, anonymous class name | |
| puts klass | |
| MyName = klass | |
| OtherName = klass | |
| # now the anonymous class is named MyName | |
| puts klass | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment