Module: ExaltedMath::Maths::Number1

Defined in:
lib/exalted_math/math.rb

Instance Method Summary collapse

Instance Method Details

#astObject



967
968
969
# File 'lib/exalted_math/math.rb', line 967

def ast
  Node::Number.new(value)
end

#negObject



964
965
966
# File 'lib/exalted_math/math.rb', line 964

def neg
  (negative.elements) ? -1 : 1
end

#valueObject



960
961
962
# File 'lib/exalted_math/math.rb', line 960

def value
  text_value.to_i*neg
end