Class: JSONP3::Path::EqExpression
- Inherits:
-
InfixExpression
- Object
- Expression
- InfixExpression
- JSONP3::Path::EqExpression
- Defined in:
- lib/json_p3/path/filter.rb
Overview
An == 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
226 227 228 |
# File 'lib/json_p3/path/filter.rb', line 226 def evaluate(context) JSONP3::Path.eq?(@left.evaluate(context), @right.evaluate(context)) end |
#to_s ⇒ Object
230 231 232 |
# File 'lib/json_p3/path/filter.rb', line 230 def to_s "#{@left} == #{@right}" end |