Class: BCDice::CommonCommand::D66Dice
- Inherits:
-
Object
- Object
- BCDice::CommonCommand::D66Dice
- Defined in:
- lib/bcdice/common_command/d66_dice.rb
Constant Summary collapse
- PREFIX_PATTERN =
/D66/.freeze
Class Method Summary collapse
Instance Method Summary collapse
- #eval(randomizer) ⇒ Result
-
#initialize(secret:, sort_type:, suffix:) ⇒ D66Dice
constructor
A new instance of D66Dice.
Constructor Details
#initialize(secret:, sort_type:, suffix:) ⇒ D66Dice
Returns a new instance of D66Dice.
48 49 50 51 52 |
# File 'lib/bcdice/common_command/d66_dice.rb', line 48 def initialize(secret:, sort_type:, suffix:) @secret = secret @sort_type = sort_type @suffix = suffix end |
Class Method Details
.eval(command, game_system, randomizer) ⇒ Result?
13 14 15 16 |
# File 'lib/bcdice/common_command/d66_dice.rb', line 13 def eval(command, game_system, randomizer) cmd = parse(command, game_system) cmd&.eval(randomizer) end |