Method: Map#apply

Defined in:
lib/map.rb

#apply(other) ⇒ Object



1017
1018
1019
1020
1021
1022
# File 'lib/map.rb', line 1017

def apply(other)
  Map.for(other).depth_first_each do |keys, value|
    set(keys => value) unless !get(keys).nil?
  end
  self
end