module LookupBy::Lookup::InstanceMethods

Public Instance Methods

===(arg) click to toggle source
Calls superclass method
# File lib/lookup_by/lookup.rb, line 133
def ===(arg)
  case arg
  when Symbol, String, Integer, IPAddr, nil
    return self == self.class[arg]
  when Array
    return arg.any? { |i| self === i }
  end

  super
end