Module: Axiom::Operation::Unary

Included in:
Aggregate, Function::Unary, Relation::Operation::Unary
Defined in:
lib/axiom/support/operation/unary.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#operandObject (readonly)

The operand to the operation

Examples:

operand = unary.operand

Returns:

  • (Object)


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

def operand
  @operand
end

Instance Method Details

#initialize(operand) ⇒ 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 Unary Operation

Parameters:

  • operand (Object)

    the operand for the operation

Returns:

  • (undefined)


26
27
28
# File 'lib/axiom/support/operation/unary.rb', line 26

def initialize(operand)
  @operand = self.class.freezer.call(operand)
end