Class: Tictactoe::Sequence::Node
- Inherits:
-
Object
- Object
- Tictactoe::Sequence::Node
- Defined in:
- lib/tictactoe/sequence.rb
Instance Attribute Summary collapse
-
#next ⇒ Object
Returns the value of attribute next.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
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 |
# File 'lib/tictactoe/sequence.rb', line 7 def initialize(value) @value = value end |
Instance Attribute Details
#next ⇒ Object
Returns the value of attribute next.
5 6 7 |
# File 'lib/tictactoe/sequence.rb', line 5 def next @next end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'lib/tictactoe/sequence.rb', line 4 def value @value end |