instance method
reverse_merge!
Ruby on Rails 3.0.20
Since v3.0.20Signature
reverse_merge!(other_hash)
Performs the opposite of merge, with the keys and values from the first hash taking precedence over the second. Modifies the receiver in place.
Parameters
-
other_hashreq
Source
# File activesupport/lib/active_support/core_ext/hash/reverse_merge.rb, line 23
def reverse_merge!(other_hash)
merge!( other_hash ){|k,o,n| o }
end
Defined in activesupport/lib/active_support/core_ext/hash/reverse_merge.rb line 23
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Hash