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

Overview

Mixin for optimizations to Unary functions

Defined Under Namespace

Modules: ConstantOperand, UnoptimizedOperand

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#operandRelation (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

#initializeundefined

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