Class: UrlRegexp::Set

Inherits:
Set
  • Object
show all
Defined in:
lib/url_regexp/path_set.rb

Instance Method Summary collapse

Instance Method Details

#include?(o) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
8
9
10
# File 'lib/url_regexp/path_set.rb', line 5

def include?(o)
  # Comparing keys directly is faster than rehash everytime for few items
  # @hash.rehash
  # super(o)
  @hash.keys.include?(o)
end