Module: BCDice::CommonCommand::TallyDice

Defined in:
lib/bcdice/common_command/tally_dice.rb,
lib/bcdice/common_command/tally_dice/node.rb,
lib/bcdice/common_command/tally_dice/parser.rb

Overview

個数カウントダイスのモジュール

Defined Under Namespace

Modules: Node Classes: Parser

Constant Summary collapse

PREFIX_PATTERN =
/\d+T[YZ]\d+/.freeze

Class Method Summary collapse

Class Method Details

.eval(command, game_system, randomizer) ⇒ Object



12
13
14
15
# File 'lib/bcdice/common_command/tally_dice.rb', line 12

def eval(command, game_system, randomizer)
  cmd = Parser.parse(command)
  cmd&.eval(game_system, randomizer)
end