class Axiom::Optimizer::Function::Predicate::Inclusion::OneRight

Optimize when the right operand has one entry

Public Instance Methods

optimize() click to toggle source

An Inclusion with a single right operand is equivalent to an Equality

@return [Equality]

@api private

# File lib/axiom/optimizer/function/predicate/inclusion.rb, line 26
def optimize
  left.eq(right.first)
end