Methods

Files

Tins::HashUnion

Public Instance Methods

|(other) click to toggle source
# File lib/tins/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

[Validate]

Generated with the Darkfish Rdoc Generator 2.