Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano-elb.rb

Instance Method Summary collapse

Instance Method Details

#diff(h2) ⇒ Object



7
8
9
# File 'lib/capistrano-elb.rb', line 7

def diff(h2)
  dup.delete_if { |k, v| h2[k] == v }.merge!(h2.dup.delete_if { |k, v| has_key?(k) })
end