Method: DMatch::Env#merge!

Defined in:
lib/destructure/env.rb

#merge!(other_env) ⇒ Object



43
44
45
# File 'lib/destructure/env.rb', line 43

def merge!(other_env)
  other_env.keys.any?{|k| bind(k, other_env[k]).nil?} ? nil : self
end