Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/warp_drive.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#recursive_merge!(other) ⇒ Object
:nodoc:.
Instance Method Details
#recursive_merge!(other) ⇒ Object
:nodoc:
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/warp_drive.rb', line 3 def recursive_merge!(other) # :nodoc: other.each do |key, value| myval = self[key] if value.is_a?(Hash) && myval.is_a?(Hash) myval.recursive_merge!(value) else self[key] = value end end self end |