Module: Veritas::Optimizer::Function::Predicate::Enumerable::EmptyRightOperand

Overview

Optimize when the right operand is empty

Instance Method Summary collapse

Methods included from Veritas::Optimizer::Function::Predicate::Enumerable

sort_by_value

Instance Method Details

#optimizable?Boolean

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.

Test if the right operand is empty

Returns:

  • (Boolean)


90
91
92
# File 'lib/veritas/optimizer/function/predicate/enumerable.rb', line 90

def optimizable?
  right_nil? || right_none?
end