instance method
merge
Ruby on Rails 7.1.6
Since v3.0.20Signature
merge(*hashes, &block)
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
-
hashesrest -
blockblock
Source
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 273
def merge(*hashes, &block)
dup.update(*hashes, &block)
end
Defined in activesupport/lib/active_support/hash_with_indifferent_access.rb line 273
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::HashWithIndifferentAccess