Class: ExaltedMath::Node::Subtract
- Inherits:
-
Operator
- Object
- ExaltedMath::Node
- Operator
- ExaltedMath::Node::Subtract
- Defined in:
- lib/exalted_math/node/subtract.rb
Instance Attribute Summary
Attributes inherited from Operator
Instance Method Summary collapse
Methods inherited from Operator
#==, #constant?, #initialize, #simplify, #valid?
Methods inherited from ExaltedMath::Node
#constant?, #initialize, #simplify, #valid?
Constructor Details
This class inherits a constructor from ExaltedMath::Node::Operator
Instance Method Details
#value(context = {}) ⇒ Object
7 8 9 |
# File 'lib/exalted_math/node/subtract.rb', line 7 def value(context={}) left.value(context) - right.value(context) end |