Module: Linner::HashRecursiveMerge
- Included in:
- Hash
- Defined in:
- lib/linner/helper.rb
Instance Method Summary collapse
Instance Method Details
#rmerge!(other_hash) ⇒ Object
3 4 5 6 7 |
# File 'lib/linner/helper.rb', line 3 def rmerge!(other_hash) merge!(other_hash) do |key, oldval, newval| oldval.class == self.class ? oldval.rmerge!(newval) : newval end end |