class LemonadeStand::Player
Attributes
assets[RW]
game[RW]
index[RW]
Public Class Methods
new()
click to toggle source
# File lib/lemonade_stand/player.rb, line 8 def initialize @assets = 200 end
Public Instance Methods
choose(choice)
click to toggle source
# File lib/lemonade_stand/player.rb, line 12 def choose choice game.make_choice choice, { player: self } end