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(_) ⇒ Object

Raises:

  • (NotImplementedError)


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

def append(_)
  raise NotImplementedError
end

#to_regexpObject



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

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

#to_regexp_sObject

Raises:

  • (NotImplementedError)


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

def to_regexp_s
  raise NotImplementedError
end