Class: Human
Instance Attribute Summary collapse
-
#choice ⇒ Object
Returns the value of attribute choice.
Instance Method Summary collapse
Methods inherited from Player
Constructor Details
This class inherits a constructor from Player
Instance Attribute Details
#choice ⇒ Object
Returns the value of attribute choice.
14 15 16 |
# File 'lib/player.rb', line 14 def choice @choice end |
Instance Method Details
#make_choice ⇒ Object
16 17 18 |
# File 'lib/player.rb', line 16 def make_choice @choice = gets.chomp.downcase end |