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