Class: BCDice::Arithmetic::Node::Number
- Inherits:
-
Object
- Object
- BCDice::Arithmetic::Node::Number
- Defined in:
- lib/bcdice/arithmetic/node.rb
Instance Method Summary collapse
- #eval(_round_type) ⇒ Object
-
#initialize(value) ⇒ Number
constructor
A new instance of Number.
-
#output ⇒ String
(also: #s_exp)
メッセージへの出力.
Constructor Details
#initialize(value) ⇒ Number
Returns a new instance of Number.
206 207 208 |
# File 'lib/bcdice/arithmetic/node.rb', line 206 def initialize(value) @value = value end |
Instance Method Details
#eval(_round_type) ⇒ Object
210 211 212 |
# File 'lib/bcdice/arithmetic/node.rb', line 210 def eval(_round_type) @value end |
#output ⇒ String Also known as: s_exp
Returns メッセージへの出力.
215 216 217 |
# File 'lib/bcdice/arithmetic/node.rb', line 215 def output @value.to_s end |