Class: JSONP3::GtExpression
- Inherits:
-
InfixExpression
- Object
- Expression
- InfixExpression
- JSONP3::GtExpression
- Defined in:
- lib/json_p3/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::InfixExpression
Instance Method Details
#evaluate(context) ⇒ Object
283 284 285 |
# File 'lib/json_p3/filter.rb', line 283 def evaluate(context) JSONP3.lt?(@right.evaluate(context), @left.evaluate(context)) end |
#to_s ⇒ Object
287 288 289 |
# File 'lib/json_p3/filter.rb', line 287 def to_s "#{@left} > #{@right}" end |