Class: JMESPath::Nodes::LiteralRightNeqCondition Private
- Inherits:
-
NeqCondition
- Object
- Node
- ComparatorCondition
- NeqCondition
- JMESPath::Nodes::LiteralRightNeqCondition
- Defined in:
- lib/jmespath/nodes/condition.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary
Constants inherited from ComparatorCondition
ComparatorCondition::COMPARATOR_TO_CONDITION
Instance Method Summary collapse
-
#initialize(left, right, child) ⇒ LiteralRightNeqCondition
constructor
private
A new instance of LiteralRightNeqCondition.
- #visit(value) ⇒ Object private
Methods inherited from NeqCondition
Methods inherited from Node
#chains_with?, #hash_like?, #optimize
Constructor Details
#initialize(left, right, child) ⇒ LiteralRightNeqCondition
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of LiteralRightNeqCondition.
86 87 88 89 |
# File 'lib/jmespath/nodes/condition.rb', line 86 def initialize(left, right, child) super @right = @right.value end |
Instance Method Details
#visit(value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
91 92 93 |
# File 'lib/jmespath/nodes/condition.rb', line 91 def visit(value) @left.visit(value) != @right ? @child.visit(value) : nil end |