instance method
merge
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v4.2.9Signature
merge(hash)
Merges the instantized and the specified hashes together, giving precedence to the values from the second hash Does not overwrite the existing hash.
Parameters
-
hashreq
Source
# File activesupport/lib/active_support/core_ext/hash/indifferent_access.rb, line 90
def merge(hash)
self.dup.update(hash)
end
Defined in activesupport/lib/active_support/core_ext/hash/indifferent_access.rb line 90
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in HashWithIndifferentAccess