Class: BCDice::CommonCommand::AddDice::Node::ImplicitSidesDiceRoll
- Inherits:
-
DiceRoll
- Object
- DiceRoll
- BCDice::CommonCommand::AddDice::Node::ImplicitSidesDiceRoll
- Defined in:
- lib/bcdice/common_command/add_dice/node.rb
Instance Method Summary collapse
-
#initialize(times) ⇒ ImplicitSidesDiceRoll
constructor
A new instance of ImplicitSidesDiceRoll.
- #s_exp ⇒ String
Methods inherited from DiceRoll
#eval, #expr, #include_dice?, #output
Constructor Details
#initialize(times) ⇒ ImplicitSidesDiceRoll
Returns a new instance of ImplicitSidesDiceRoll.
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_exp ⇒ String
445 446 447 |
# File 'lib/bcdice/common_command/add_dice/node.rb', line 445 def s_exp "(ImplicitSidesDiceRoll #{@times.s_exp})" end |