module Corefines::Hash::OpAdd
@!method +(other_hash)
Alias for +#merge+. @example {a: 1, b: 2} + {b: 3, c: 4} => {a: 1, b: 3, c: 4} @param other_hash [Hash] @return [Hash] a new hash containing the contents of _other_hash_ and this hash. The value for entries with duplicate keys will be that of _other_hash_.
Public Instance Methods
+(other_hash)
click to toggle source
# File lib/corefines/hash.rb, line 166 def +(other_hash) merge other_hash end