Method: Indifference::HashWithIndifferentAccess#merge

Defined in:
lib/indifference/hash_with_indifferent_access.rb

#merge(hash, &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.



214
215
216
# File 'lib/indifference/hash_with_indifferent_access.rb', line 214

def merge(hash, &block)
  self.dup.update(hash, &block)
end