Module: Veritas::Optimizer::Function::Unary

Included in:
Aggregate, Connective::Negation, Numeric::ConstantOperand, Numeric::UnoptimizedOperand, String::Length, Relation::Operation::Unary
Defined in:
lib/veritas/optimizer/function/unary.rb

Overview

Mixin for optimizations to Unary functions

Defined Under Namespace

Modules: ConstantOperand, UnoptimizedOperand

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Relation) operand (readonly)

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.

The optimized operand

Returns:



15
16
17
# File 'lib/veritas/optimizer/function/unary.rb', line 15

def operand
  @operand
end

Instance Method Details

- (undefined) initialize

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 a Unary optimizer

Returns:

  • (undefined)


22
23
24
25
# File 'lib/veritas/optimizer/function/unary.rb', line 22

def initialize(*)
  super
  @operand = optimize_operand
end