Class: GooseGame::Cell::Bridge
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
59 60 61 62 63 |
# File 'lib/goose_game/cell.rb', line 59 def call(player, dice) super.tap do |pos| @tokens << "#{player} jumps to #{pos}" end end |