Class: GooseGame::Cell::Winning
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from GooseGame::Cell::Base
Instance Method Details
#call(player, dice) ⇒ Object
51 52 53 54 55 |
# File 'lib/goose_game/cell.rb', line 51 def call(player, dice) super.tap do |pos| @tokens << "#{player} Wins!!" end end |