class Axiom::Optimizer::Function::Predicate::Exclusion::OneRight

Optimize when the right operand has one entry

Public Instance Methods

optimize() click to toggle source

An Exclusion with a single right operand is equivalent to an Inequality

@return [Inequality]

@api private

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