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
-
#operand ⇒ Relation
readonly
private
The optimized operand.
Instance Method Summary collapse
-
#initialize ⇒ undefined
private
Initialize a Unary optimizer.
Instance Attribute Details
#operand ⇒ Relation (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
15 16 17 |
# File 'lib/veritas/optimizer/function/unary.rb', line 15 def operand @operand end |
Instance Method Details
#initialize ⇒ 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 a Unary optimizer
22 23 24 25 |
# File 'lib/veritas/optimizer/function/unary.rb', line 22 def initialize(*) super @operand = optimize_operand end |