Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/hash_deep_merge.rb

Instance Method Summary collapse

Instance Method Details

#deep_merge(specialized_hash) ⇒ Object



8
9
10
# File 'lib/hash_deep_merge.rb', line 8

def deep_merge(specialized_hash)
	return internal_deep_merge!(Hash.new.replace(self), specialized_hash)
end

#deep_merge!(specialized_hash) ⇒ Object



3
4
5
# File 'lib/hash_deep_merge.rb', line 3

def deep_merge!(specialized_hash)
	return internal_deep_merge!(self, specialized_hash)
end