Class: Node
- Inherits:
-
Object
- Object
- Node
- Defined in:
- lib/node.rb
Instance Attribute Summary collapse
-
#next ⇒ Object
Returns the value of attribute next.
-
#value ⇒ Object
Returns the value of attribute value.
-
#word ⇒ Object
Returns the value of attribute word.
Instance Method Summary collapse
-
#initialize(value) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(value) ⇒ Node
Returns a new instance of Node.
7 8 9 10 11 12 |
# File 'lib/node.rb', line 7 def initialize(value) @value = value @word = false @next = [] end |
Instance Attribute Details
#next ⇒ Object
Returns the value of attribute next.
5 6 7 |
# File 'lib/node.rb', line 5 def next @next end |
#value ⇒ Object
Returns the value of attribute value.
5 6 7 |
# File 'lib/node.rb', line 5 def value @value end |
#word ⇒ Object
Returns the value of attribute word.
5 6 7 |
# File 'lib/node.rb', line 5 def word @word end |