Method: ActiveSupport::HashWithIndifferentAccess#merge
- Defined in:
- activesupport/lib/active_support/hash_with_indifferent_access.rb
#merge(*hashes, &block) ⇒ Object
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.
287 288 289 |
# File 'activesupport/lib/active_support/hash_with_indifferent_access.rb', line 287 def merge(*hashes, &block) dup.update(*hashes, &block) end |