Class: Move
- Inherits:
-
Object
- Object
- Move
- Defined in:
- lib/nick_tac_toe/move.rb
Instance Attribute Summary collapse
-
#position ⇒ Object
Returns the value of attribute position.
-
#rating ⇒ Object
Returns the value of attribute rating.
Instance Method Summary collapse
-
#initialize(position, rating) ⇒ Move
constructor
A new instance of Move.
Constructor Details
#initialize(position, rating) ⇒ Move
Returns a new instance of Move.
3 4 5 6 |
# File 'lib/nick_tac_toe/move.rb', line 3 def initialize(position, ) @position = position = end |
Instance Attribute Details
#position ⇒ Object
Returns the value of attribute position.
2 3 4 |
# File 'lib/nick_tac_toe/move.rb', line 2 def position @position end |
#rating ⇒ Object
Returns the value of attribute rating.
2 3 4 |
# File 'lib/nick_tac_toe/move.rb', line 2 def end |