Created
August 20, 2009 14:24
-
-
Save aditya/171091 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
s = "mutable" | |
arr = [s] | |
hsh = { arr => "object" } | |
s.upcase! | |
p hsh[arr] # -> nil (maybe not what was expected) | |
hsh.rehash | |
p hsh[arr] # -> "object" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment