instance method
merge
Ruby on Rails edge
Since v3.0.20Signature
merge(...)
This method has the same semantics of update, except it does not modify the receiver but rather returns a new hash with indifferent access with the result of the merge.
Parameters
-
...req -
blockblock
Source
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 331
def merge(...)
dup.update(...)
end
Defined in activesupport/lib/active_support/hash_with_indifferent_access.rb line 331
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::HashWithIndifferentAccess