Method: Map#contains

Defined in:
lib/map.rb

#contains(other) ⇒ Object Also known as: contains?



1141
1142
1143
1144
1145
# File 'lib/map.rb', line 1141

def contains(other)
  other = other.is_a?(Hash) ? Map.coerce(other) : other
  breadth_first_each{|key, value| return true if value == other}
  return false
end