Module: Axiom::Operation::Binary

Included in:
Function::Binary, Relation::Operation::Binary
Defined in:
lib/axiom/support/operation/binary.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#leftObject (readonly)

The left operand for the operation

Examples:

left = binary.left

Returns:

  • (Object)


16
17
18
# File 'lib/axiom/support/operation/binary.rb', line 16

def left
  @left
end

#rightObject (readonly)

The right operand for the operation

Examples:

right = binary.right

Returns:

  • (Object)


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

Parameters:

  • left (Object)

    the left operand for the operation

  • right (Object)

    the right operand for the operation

Returns:

  • (undefined)


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