Class: Veritas::Optimizer::Function::Predicate::Inclusion::OneRightOperand
- Inherits:
-
Veritas::Optimizer::Function::Predicate::Inclusion
- Object
- Veritas::Optimizer
- Veritas::Optimizer::Function::Predicate
- Veritas::Optimizer::Function::Predicate::Inclusion
- Veritas::Optimizer::Function::Predicate::Inclusion::OneRightOperand
- Includes:
- Enumerable::OneRightOperand
- Defined in:
- lib/veritas/optimizer/function/predicate/inclusion.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 ⇒ Equality
private
An Inclusion with a single right operand is equivalent to an Equality.
Methods included from Enumerable::OneRightOperand
Methods included from Enumerable
Methods included from Binary
Methods inherited from Veritas::Optimizer
chain, #initialize, #optimizable?
Instance Method Details
#optimize ⇒ Equality
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 Inclusion with a single right operand is equivalent to an Equality
26 27 28 |
# File 'lib/veritas/optimizer/function/predicate/inclusion.rb', line 26 def optimize left.eq(right.first) end |