Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[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
You can’t perform that action at this time.