Class: BCDice::CommonCommand::AddDice::Node::ImplicitSidesDiceRoll

Inherits:
DiceRoll
  • Object
show all
Defined in:
lib/bcdice/common_command/add_dice/node.rb

Instance Method Summary collapse

Methods inherited from DiceRoll

#eval, #expr, #include_dice?, #output

Constructor Details

#initialize(times) ⇒ ImplicitSidesDiceRoll

Returns a new instance of ImplicitSidesDiceRoll.

Parameters:

  • times (Number)

    ダイスを振る回数のノード



439
440
441
442
# File 'lib/bcdice/common_command/add_dice/node.rb', line 439

def initialize(times)
  @times = times
  @text = nil
end

Instance Method Details

#s_expString

Returns:

  • (String)


445
446
447
# File 'lib/bcdice/common_command/add_dice/node.rb', line 445

def s_exp
  "(ImplicitSidesDiceRoll #{@times.s_exp})"
end