Class: ExaltedMath::Node::Add

Inherits:
Operator show all
Defined in:
lib/exalted_math/node/add.rb

Instance Attribute Summary

Attributes inherited from Operator

#left, #right

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/add.rb', line 7

def value(context={})
  left.value(context) + right.value(context)
end