Class: Matchers::Node
- Inherits:
-
Object
- Object
- Matchers::Node
- Defined in:
- lib/aho_corasick.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
readonly
Returns the value of attribute children.
-
#failure ⇒ Object
Returns the value of attribute failure.
-
#output ⇒ Object
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize ⇒ Node
constructor
A new instance of Node.
- #insert(char) ⇒ Object
Constructor Details
#initialize ⇒ Node
Returns a new instance of Node.
71 72 73 74 75 76 |
# File 'lib/aho_corasick.rb', line 71 def initialize @children = {} @children.default = nil @output = nil @failure = nil end |
Instance Attribute Details
#children ⇒ Object (readonly)
Returns the value of attribute children.
68 69 70 |
# File 'lib/aho_corasick.rb', line 68 def children @children end |
#failure ⇒ Object
Returns the value of attribute failure.
69 70 71 |
# File 'lib/aho_corasick.rb', line 69 def failure @failure end |
#output ⇒ Object
Returns the value of attribute output.
69 70 71 |
# File 'lib/aho_corasick.rb', line 69 def output @output end |