Skip to content

Instantly share code, notes, and snippets.

@tadast
Created January 29, 2015 15:36
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 tadast/73c825e8d51fb8962e4f to your computer and use it in GitHub Desktop.
Save tadast/73c825e8d51fb8962e4f to your computer and use it in GitHub Desktop.
[94] pry(main)> WHATEVER = {a: [{x: :boom1, z: :boom2}]}.freeze
=> {:a=>[{:x=>:boom1, :z=>:boom2}]}
[95] pry(main)> WHATEVER.clone[:a].first[:x] = :wtf
=> :wtf
[96] pry(main)> WHATEVER[:a].first[:x]
=> :wtf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment