Class: SchoetlrGem::Player
- Inherits:
-
Object
- Object
- SchoetlrGem::Player
- Defined in:
- lib/schoetlr_gem.rb
Instance Attribute Summary collapse
-
#hand ⇒ Object
Returns the value of attribute hand.
Instance Method Summary collapse
-
#initialize(string = nil) ⇒ Player
constructor
A new instance of Player.
Constructor Details
#initialize(string = nil) ⇒ Player
Returns a new instance of Player.
22 23 24 |
# File 'lib/schoetlr_gem.rb', line 22 def initialize(string = nil) @hand = string end |
Instance Attribute Details
#hand ⇒ Object
Returns the value of attribute hand.
20 21 22 |
# File 'lib/schoetlr_gem.rb', line 20 def hand @hand end |