Created
January 11, 2010 18:27
-
-
Save mdkent/274454 to your computer and use it in GitHub Desktop.
This file contains 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> a = { :x => true }; b = { :x => false }; p a.deep_merge!(b, {:merge_debug => true}) | |
Source class: Hash :: Dest class: Hash | |
Hashes: {:x=>false} :: {:x=>true} | |
looping: :x => false :: {:x=>true} | |
==>merging: :x => false :: true | |
Returning {:x=>true} | |
{:x=>true} | |
=> nil |
This file contains 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> a = { :x => true }; b = { :x => false }; p a.deep_merge!(b, {:merge_debug => true}) | |
Source class: Hash :: Dest class: Hash | |
Hashes: {:x=>false} :: {:x=>true} | |
looping: :x => false :: {:x=>true} | |
==>merging: :x => false :: true | |
Source class: FalseClass :: Dest class: TrueClass | |
Others: false :: true | |
Returning false | |
Returning {:x=>false} | |
{:x=>false} | |
=> nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment