Class: TTT::MoveHistory
- Inherits:
-
Object
- Object
- TTT::MoveHistory
- Defined in:
- lib/ttt/move_history.rb
Instance Attribute Summary collapse
-
#move ⇒ Object
readonly
Returns the value of attribute move.
-
#side ⇒ Object
readonly
Returns the value of attribute side.
Instance Method Summary collapse
-
#initialize(options) ⇒ MoveHistory
constructor
A new instance of MoveHistory.
Constructor Details
#initialize(options) ⇒ MoveHistory
Returns a new instance of MoveHistory.
4 5 6 7 |
# File 'lib/ttt/move_history.rb', line 4 def initialize() @side = .fetch(:side) @move = .fetch(:move) end |
Instance Attribute Details
#move ⇒ Object (readonly)
Returns the value of attribute move.
3 4 5 |
# File 'lib/ttt/move_history.rb', line 3 def move @move end |
#side ⇒ Object (readonly)
Returns the value of attribute side.
3 4 5 |
# File 'lib/ttt/move_history.rb', line 3 def side @side end |