Class: JSONP3::Path::GeExpression
- Inherits:
-
InfixExpression
- Object
- Expression
- InfixExpression
- JSONP3::Path::GeExpression
- Defined in:
- lib/json_p3/path/filter.rb
Overview
A >= expression.
Instance Attribute Summary
Attributes inherited from InfixExpression
Attributes inherited from Expression
Instance Method Summary collapse
Methods inherited from InfixExpression
Methods inherited from Expression
Constructor Details
This class inherits a constructor from JSONP3::Path::InfixExpression
Instance Method Details
#evaluate(context) ⇒ Object
261 262 263 264 265 |
# File 'lib/json_p3/path/filter.rb', line 261 def evaluate(context) left = @left.evaluate(context) right = @right.evaluate(context) JSONP3::Path.eq?(left, right) || JSONP3::Path.lt?(right, left) end |
#to_s ⇒ Object
267 268 269 |
# File 'lib/json_p3/path/filter.rb', line 267 def to_s "#{@left} >= #{@right}" end |