class BCDice::Arithmetic::Node::Number

Public Class Methods

new(value) click to toggle source
# File lib/bcdice/arithmetic/node.rb, line 206
def initialize(value)
  @value = value
end

Public Instance Methods

eval(_round_type) click to toggle source
# File lib/bcdice/arithmetic/node.rb, line 210
def eval(_round_type)
  @value
end
output() click to toggle source

@return [String] メッセージへの出力

# File lib/bcdice/arithmetic/node.rb, line 215
def output
  @value.to_s
end
Also aliased as: s_exp
s_exp()
Alias for: output