Class: Player
- Inherits:
-
Object
- Object
- Player
- Defined in:
- lib/nick_tac_toe/player.rb
Instance Attribute Summary collapse
-
#team ⇒ Object
readonly
Returns the value of attribute team.
Instance Method Summary collapse
- #computer? ⇒ Boolean
-
#initialize(team) ⇒ Player
constructor
A new instance of Player.
Constructor Details
#initialize(team) ⇒ Player
Returns a new instance of Player.
4 5 6 |
# File 'lib/nick_tac_toe/player.rb', line 4 def initialize(team) @team = team end |
Instance Attribute Details
#team ⇒ Object (readonly)
Returns the value of attribute team.
2 3 4 |
# File 'lib/nick_tac_toe/player.rb', line 2 def team @team end |
Instance Method Details
#computer? ⇒ Boolean
8 9 10 |
# File 'lib/nick_tac_toe/player.rb', line 8 def computer? false end |