Module: ExaltedMath::Maths::Number1
- Defined in:
- lib/exalted_math/math.rb
Instance Method Summary collapse
Instance Method Details
#ast ⇒ Object
967 968 969 |
# File 'lib/exalted_math/math.rb', line 967 def ast Node::Number.new(value) end |
#neg ⇒ Object
964 965 966 |
# File 'lib/exalted_math/math.rb', line 964 def neg (negative.elements) ? -1 : 1 end |
#value ⇒ Object
960 961 962 |
# File 'lib/exalted_math/math.rb', line 960 def value text_value.to_i*neg end |