Class: Tictactoe::Sequence::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/tictactoe/sequence.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nextObject

Returns the value of attribute next.



5
6
7
# File 'lib/tictactoe/sequence.rb', line 5

def next
  @next
end

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/tictactoe/sequence.rb', line 4

def value
  @value
end