instance method
reverse_merge!
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
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 27
def reverse_merge!(other_hash)
replace(reverse_merge(other_hash))
end
Defined in activesupport/lib/active_support/core_ext/hash/reverse_merge.rb line 27
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::CoreExtensions::Hash::ReverseMerge