Class: JMESPath::Nodes::LiteralRightEqCondition Private
- Inherits:
-
EqCondition
- Object
- Node
- ComparatorCondition
- EqCondition
- JMESPath::Nodes::LiteralRightEqCondition
- 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::COMPARABLE_TYPES, ComparatorCondition::COMPARATOR_TO_CONDITION
Instance Method Summary collapse
-
#initialize(left, right, child) ⇒ LiteralRightEqCondition
constructor
private
A new instance of LiteralRightEqCondition.
- #visit(value) ⇒ Object private
Methods inherited from EqCondition
Methods inherited from Node
Constructor Details
#initialize(left, right, child) ⇒ LiteralRightEqCondition
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 LiteralRightEqCondition.
69 70 71 72 |
# File 'lib/jmespath/nodes/condition.rb', line 69 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.
74 75 76 |
# File 'lib/jmespath/nodes/condition.rb', line 74 def visit(value) Util.as_json(@left.visit(value)) == @right ? @child.visit(value) : nil end |