Class: JMESPath::Nodes::GtCondition Private
- Inherits:
-
ComparatorCondition
- Object
- Node
- ComparatorCondition
- JMESPath::Nodes::GtCondition
- 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
- #visit(value) ⇒ Object private
Methods inherited from ComparatorCondition
Methods inherited from Node
#chains_with?, #hash_like?, #optimize
Constructor Details
This class inherits a constructor from JMESPath::Nodes::ComparatorCondition
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.
99 100 101 102 103 |
# File 'lib/jmespath/nodes/condition.rb', line 99 def visit(value) left_value = @left.visit(value) right_value = @right.visit(value) left_value.is_a?(Integer) && right_value.is_a?(Integer) && left_value > right_value ? @child.visit(value) : nil end |