Class: JSONP3::LtExpression
- Inherits:
-
InfixExpression
- Object
- Expression
- InfixExpression
- JSONP3::LtExpression
- 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
272 273 274 |
# File 'lib/json_p3/filter.rb', line 272 def evaluate(context) JSONP3.lt?(@left.evaluate(context), @right.evaluate(context)) end |
#to_s ⇒ Object
276 277 278 |
# File 'lib/json_p3/filter.rb', line 276 def to_s "#{@left} < #{@right}" end |