1 2 3 4 5 |
str1 = "foo"
str2 = str1.dup
a1 = [ str1 ]
a2 = [ str2 ]
p a1.hash == a2.hash #=> true
|
Pastie
Support Pastie
or read my
Pastie << self
blog
1 2 3 4 5 |
str1 = "foo"
str2 = str1.dup
a1 = [ str1 ]
a2 = [ str2 ]
p a1.hash == a2.hash #=> true
|