Method: Mash#merge

Defined in:
lib/extlib/mash.rb

#merge(hash) ⇒ Mash

Returns A new mash with the hash values merged in.

Parameters:

  • hash (Hash)

    The hash to merge with the mash.

Returns:

  • (Mash)

    A new mash with the hash values merged in.



91
92
93
# File 'lib/extlib/mash.rb', line 91

def merge(hash)
  self.dup.update(hash)
end