Class: Player
- Inherits:
-
Object
- Object
- Player
- Defined in:
- lib/player.rb
Instance Attribute Summary collapse
-
#choice ⇒ Object
Returns the value of attribute choice.
Instance Method Summary collapse
-
#initialize ⇒ Player
constructor
A new instance of Player.
Constructor Details
#initialize ⇒ Player
Returns a new instance of Player.
7 8 9 |
# File 'lib/player.rb', line 7 def initialize @choice = nil end |
Instance Attribute Details
#choice ⇒ Object
Returns the value of attribute choice.
5 6 7 |
# File 'lib/player.rb', line 5 def choice @choice end |