method
reverse_merge
v1.2.6 -
Show latest stable
- Class:
ActiveSupport::CoreExtensions::Hash::ReverseMerge
reverse_merge(other_hash)public
No documentation available.
# File activesupport/lib/active_support/core_ext/hash/reverse_merge.rb, line 13
def reverse_merge(other_hash)
other_hash.merge(self)
end 1Note
reverse_merge(other_hash)
Performs the opposite of merge, with the keys and values from the first hash taking precedence over the second.