Created
August 24, 2015 16:44
-
-
Save shaiguitar/e19d69d19e36cc6e4332 to your computer and use it in GitHub Desktop.
ruby-hash-access-in-string
This file contains hidden or 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
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