Method: BCDice::CommonCommand::AddDice::Node::Command#expr
- Defined in:
- lib/bcdice/common_command/add_dice/node.rb
#expr(game_system) ⇒ String
文字列に変換する
39 40 41 |
# File 'lib/bcdice/common_command/add_dice/node.rb', line 39 def expr(game_system) @lhs.expr(game_system) + cmp_op_text + @rhs&.eval(game_system, nil).to_s end |