Class: LessThanOperator
- Inherits:
-
Object
- Object
- LessThanOperator
- Includes:
- BinaryOperator
- Defined in:
- lib/json_expr/operators/less_than_operator.rb
Instance Method Summary collapse
Methods included from BinaryOperator
Instance Method Details
#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 |