Class: UrlRegexp::Node
- Inherits:
-
Object
show all
- Defined in:
- lib/url_regexp/node.rb
Instance Method Summary
collapse
Instance Method Details
#append(node) ⇒ Object
7
8
9
|
# File 'lib/url_regexp/node.rb', line 7
def append(node)
raise NotImplementedError
end
|
#eql?(other) ⇒ Boolean
3
4
5
|
# File 'lib/url_regexp/node.rb', line 3
def eql?(other)
hash == other.hash
end
|
#to_regexp ⇒ Object
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_s ⇒ Object
11
12
13
|
# File 'lib/url_regexp/node.rb', line 11
def to_regexp_s
raise NotImplementedError
end
|