Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/profigure/hash_extensions.rb
Instance Method Summary collapse
Instance Method Details
#recursive_merge!(hash) ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/profigure/hash_extensions.rb', line 2 def recursive_merge!(hash) self.merge!( hash ) do |key, oldval, newval| if oldval.class == Hash oldval.recursive_merge! newval else newval end end end |