Module: Axiom::Operation::Binary
- Included in:
- Function::Binary, Relation::Operation::Binary
- Defined in:
- lib/axiom/support/operation/binary.rb
Instance Attribute Summary collapse
-
#left ⇒ Object
readonly
The left operand for the operation.
-
#right ⇒ Object
readonly
The right operand for the operation.
Instance Method Summary collapse
-
#initialize(left, right) ⇒ undefined
private
Initialize Binary Operation.
Instance Attribute Details
#left ⇒ Object (readonly)
The left operand for the operation
16 17 18 |
# File 'lib/axiom/support/operation/binary.rb', line 16 def left @left end |
#right ⇒ Object (readonly)
The right operand for the operation
26 27 28 |
# File 'lib/axiom/support/operation/binary.rb', line 26 def right @right end |
Instance Method Details
#initialize(left, right) ⇒ undefined
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initialize Binary Operation
38 39 40 41 |
# File 'lib/axiom/support/operation/binary.rb', line 38 def initialize(left, right) @left = freeze_object(left) @right = freeze_object(right) end |