Class: SchoetlrGem::Player

Inherits:
Object
  • Object
show all
Defined in:
lib/schoetlr_gem.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#handObject

Returns the value of attribute hand.



20
21
22
# File 'lib/schoetlr_gem.rb', line 20

def hand
  @hand
end