Skip to content

Instantly share code, notes, and snippets.

@hynkle
Created August 4, 2011 20:49
Show Gist options
  • Save hynkle/1126233 to your computer and use it in GitHub Desktop.
Save hynkle/1126233 to your computer and use it in GitHub Desktop.
Odd ohm-contrib (mis)behavior
# 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