Skip to content

Instantly share code, notes, and snippets.

@AJFaraday
Created July 2, 2013 15:02
Show Gist options
  • Save AJFaraday/5910052 to your computer and use it in GitHub Desktop.
Save AJFaraday/5910052 to your computer and use it in GitHub Desktop.
Where did property A go?
hash_1 = {:string => 'string', :hash => {:property_A => 'a'}}
hash_2 = {:hash => {:property_B => 'b'}}
hash_1.merge(hash_2)
# => {:string=>"string", :hash=>{:property_B=>"b"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment