instance method
reverse_merge!
Ruby on Rails 4.2.9
Since v3.0.20Signature
reverse_merge!(other_hash)
Destructive reverse_merge.
Parameters
-
other_hashreq
Source
# File activesupport/lib/active_support/core_ext/hash/reverse_merge.rb, line 17
def reverse_merge!(other_hash)
# right wins if there is no left
merge!( other_hash ){|key,left,right| left }
end
Defined in activesupport/lib/active_support/core_ext/hash/reverse_merge.rb line 17
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Hash