Created
September 24, 2009 18:48
-
-
Save usergenic/192949 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
# Run this as a script and then paste into IRB | |
# for a little surprise. | |
c1 = Class.new | |
c2 = Class.new | |
puts "c1.name == #{c1.name}" | |
puts "c2.name == #{c2.name}" | |
A1 = c1 | |
B1 = c1 | |
A2 = c2; B2 = c2 | |
puts "c1.name == #{c1.name}" | |
puts "c2.name == #{c2.name}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment