Class: Veritas::Optimizer::Function::Predicate::Exclusion::OneRightOperand
- Inherits:
-
Veritas::Optimizer::Function::Predicate::Exclusion
- Object
- Veritas::Optimizer
- Veritas::Optimizer::Function::Predicate
- Veritas::Optimizer::Function::Predicate::Exclusion
- Veritas::Optimizer::Function::Predicate::Exclusion::OneRightOperand
- Defined in:
- lib/veritas/optimizer/function/predicate/exclusion.rb
Overview
Optimize when the right operand has one entry
Constant Summary
Constants inherited from Veritas::Optimizer
Instance Attribute Summary
Attributes included from Binary
Attributes inherited from Veritas::Optimizer
Instance Method Summary collapse
-
#optimize ⇒ Inequality
private
An Exclusion with a single right operand is equivalent to an Inequality.
Methods included from Veritas::Optimizer::Function::Predicate::Enumerable::OneRightOperand
Methods included from Veritas::Optimizer::Function::Predicate::Enumerable
Methods included from Binary
Methods inherited from Veritas::Optimizer
chain, #initialize, #optimizable?
Instance Method Details
#optimize ⇒ Inequality
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.
An Exclusion with a single right operand is equivalent to an Inequality
26 27 28 |
# File 'lib/veritas/optimizer/function/predicate/exclusion.rb', line 26 def optimize left.ne(right.first) end |