Method: LessThanOperator#binary

Defined in:
lib/json_expr/operators/less_than_operator.rb

#binary(evaluator, lhs, rhs) ⇒ Object



8
9
10
11
# File 'lib/json_expr/operators/less_than_operator.rb', line 8

def binary(evaluator, lhs, rhs)
  result = evaluator.compare(lhs, rhs)
  !result.nil? ? (result < 0) : nil
end