Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/motion-plot/core_ext/hash.rb

Instance Method Summary collapse

Instance Method Details

#reverse_merge(other_hash) ⇒ Object



3
4
5
# File 'lib/motion-plot/core_ext/hash.rb', line 3

def reverse_merge(other_hash)
  other_hash.merge(self)
end

#reverse_merge!(other_hash) ⇒ Object



7
8
9
# File 'lib/motion-plot/core_ext/hash.rb', line 7

def reverse_merge!(other_hash)
  replace(reverse_merge(other_hash))
end