Class: Matchers::Node
- Inherits:
-
Object
- Object
- Matchers::Node
- Defined in:
- lib/matcher.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.
112 113 114 115 116 117 |
# File 'lib/matcher.rb', line 112 def initialize @children = {} @children.default = nil @output = nil @failure = nil end |
Instance Attribute Details
#children ⇒ Object (readonly)
Returns the value of attribute children.
109 110 111 |
# File 'lib/matcher.rb', line 109 def children @children end |
#failure ⇒ Object
Returns the value of attribute failure.
110 111 112 |
# File 'lib/matcher.rb', line 110 def failure @failure end |
#output ⇒ Object
Returns the value of attribute output.
110 111 112 |
# File 'lib/matcher.rb', line 110 def output @output end |