Created
August 4, 2011 20:49
-
-
Save hynkle/1126233 to your computer and use it in GitHub Desktop.
Odd ohm-contrib (mis)behavior
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
# in both 1.8.7 and 1.9.2 | |
h = {} | |
h['foo'] = 'bar' | |
h[Ohm::Types::String.new('foo')] # 'bar' | |
h = {} | |
h[Ohm::Types::String.new('foo')] = 'bar' | |
h['foo'] # nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment