Skip to content

Instantly share code, notes, and snippets.

@shaiguitar
Created August 24, 2015 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shaiguitar/e19d69d19e36cc6e4332 to your computer and use it in GitHub Desktop.
Save shaiguitar/e19d69d19e36cc6e4332 to your computer and use it in GitHub Desktop.
ruby-hash-access-in-string
irb(main):001:0> foo = "i like food"
=> "i like food"
irb(main):002:0> foo["food"] = "beer"
=> "beer"
irb(main):003:0> foo
=> "i like beer"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment