class BCDice::GameSystem::OneWayHeroics::MoveToTable
Public Class Methods
new(text, table_key)
click to toggle source
# File lib/bcdice/game_system/one_way_heroics/tables.rb, line 48 def initialize(text, table_key) @text = text @table_key = table_key end
Public Instance Methods
roll(randomizer)
click to toggle source
# File lib/bcdice/game_system/one_way_heroics/tables.rb, line 53 def roll(randomizer) <<~RESULT.chomp #{@text} > #{@table_key} > #{TABLES[@table_key].roll(randomizer)} RESULT end