Skip to content

Instantly share code, notes, and snippets.

@usergenic
Created September 24, 2009 18:48
Show Gist options
  • Save usergenic/192949 to your computer and use it in GitHub Desktop.
Save usergenic/192949 to your computer and use it in GitHub Desktop.
# 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