Class: UrlRegexp::Node

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

Direct Known Subclasses

Host, Path, PathSet, Root, Scheme

Instance Method Summary collapse

Instance Method Details

#append(node) ⇒ Object

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/url_regexp/node.rb', line 7

def append(node)
  raise NotImplementedError
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/url_regexp/node.rb', line 3

def eql?(other)
  hash == other.hash
end

#to_regexpObject



15
16
17
18
# File 'lib/url_regexp/node.rb', line 15

def to_regexp
  rs = to_regexp_s
  Regexp.new(rs)
end

#to_regexp_sObject

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/url_regexp/node.rb', line 11

def to_regexp_s
  raise NotImplementedError
end