module Axiom::Optimizer::Function::Unary

Mixin for optimizations to Unary functions

Attributes

operand[R]

The optimized operand

@return [Relation]

@api private

Public Class Methods

new(*) click to toggle source

Initialize a Unary optimizer

@return [undefined]

@api private

Calls superclass method
# File lib/axiom/optimizer/function/unary.rb, line 22
def initialize(*)
  super
  @operand = optimize_operand
end

Private Instance Methods

optimize_operand() click to toggle source

Optimize the operand

@return [Relation]

@api private

# File lib/axiom/optimizer/function/unary.rb, line 34
def optimize_operand
  Function.optimize_operand(operation.operand)
end