module Spruz::HashUnion
Public Instance Methods
|(other)
click to toggle source
# File lib/spruz/hash_union.rb, line 3 def |(other) case when other.respond_to?(:to_hash) other = other.to_hash when other.respond_to?(:to_h) other = other.to_h end other.merge(self) end