Class: GreaterThanOrEqualOperator
- Inherits:
-
Object
- Object
- GreaterThanOrEqualOperator
- Includes:
- BinaryOperator
- Defined in:
- lib/json_expr/operators/greater_than_or_equal_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/greater_than_or_equal_operator.rb', line 8 def binary(evaluator, lhs, rhs) result = evaluator.compare(lhs, rhs) !result.nil? ? (result >= 0) : nil end |