Class: VikingRoom7::Player
- Inherits:
-
Object
- Object
- VikingRoom7::Player
- Defined in:
- lib/viking_room7/player.rb
Instance Attribute Summary collapse
-
#hand ⇒ Object
Returns the value of attribute hand.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Player
constructor
A new instance of Player.
- #throw ⇒ Object
Constructor Details
#initialize(name) ⇒ Player
Returns a new instance of Player.
5 6 7 8 |
# File 'lib/viking_room7/player.rb', line 5 def initialize(name) @name = name @hand = "r" end |
Instance Attribute Details
#hand ⇒ Object
Returns the value of attribute hand.
3 4 5 |
# File 'lib/viking_room7/player.rb', line 3 def hand @hand end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/viking_room7/player.rb', line 3 def name @name end |
Instance Method Details
#throw ⇒ Object
10 11 |
# File 'lib/viking_room7/player.rb', line 10 def throw end |