Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/core/hash.rb
Instance Method Summary collapse
Instance Method Details
#rmerge!(other_hash) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/core/hash.rb', line 2 def rmerge!(other_hash) merge!(other_hash) do |key, oldval, newval| if oldval.is_a?(SimpleConf::Conf) && newval.is_a?(SimpleConf::Conf) oldval.check_and_change_overrides(newval) oldval.__vars__.rmerge!(newval.__vars__) oldval.instance_eval(&newval.__instance_block__) oldval elsif oldval.is_a?(Hash) oldval.rmerge!(newval) else newval end end end |