module Axiom::Optimizer::Function::Predicate::Enumerable::OneRight

Optimize when the right operand has one entry

Public Instance Methods

optimizable?() click to toggle source

Test if the right operand has one entry

@return [Boolean]

@api private

# File lib/axiom/optimizer/function/predicate/enumerable.rb, line 124
def optimizable?
  right.one? { true }
end