Class: Roby::Tools::Calculus::Binary
- Includes:
- Build
- Defined in:
- lib/roby/coordination/calculus.rb
Instance Attribute Summary collapse
-
#left ⇒ Object
Returns the value of attribute left.
-
#op ⇒ Object
Returns the value of attribute op.
-
#right ⇒ Object
Returns the value of attribute right.
Instance Method Summary collapse
Methods included from Build
Instance Attribute Details
#left ⇒ Object
Returns the value of attribute left
33 34 35 |
# File 'lib/roby/coordination/calculus.rb', line 33 def left @left end |
#op ⇒ Object
Returns the value of attribute op
33 34 35 |
# File 'lib/roby/coordination/calculus.rb', line 33 def op @op end |
#right ⇒ Object
Returns the value of attribute right
33 34 35 |
# File 'lib/roby/coordination/calculus.rb', line 33 def right @right end |
Instance Method Details
#evaluate(variables) ⇒ Object
34 35 36 |
# File 'lib/roby/coordination/calculus.rb', line 34 def evaluate(variables) left.evaluate(variables).send(op, right.evaluate(variables)) end |