Method: Hash#*

Defined in:
lib/core/facets/hash/op_mul.rb

#*(other) ⇒ Object

Like merge operator ‘+’ but merges in reverse order.

h1 = {:a=>1}
h2 = {:a=>2, :b=>3}

(h1 + h2) #=> { :a=>2, :b=>3 }
(h1 * h2)  #=> { :a=>1, :b=>3 }

CREDIT: Trans



13
14
15
# File 'lib/core/facets/hash/op_mul.rb', line 13

def *(other)
  other.merge(self)
end