Class: JSONP3::NeExpression
- Inherits:
-
InfixExpression
- Object
- Expression
- InfixExpression
- JSONP3::NeExpression
- 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
permalink #evaluate(context) ⇒ Object
[View source]
235 236 237 |
# File 'lib/json_p3/filter.rb', line 235 def evaluate(context) !JSONP3.eq?(@left.evaluate(context), @right.evaluate(context)) end |
permalink #to_s ⇒ Object
[View source]
239 240 241 |
# File 'lib/json_p3/filter.rb', line 239 def to_s "#{@left} != #{@right}" end |