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::COMPARABLE_TYPES, ComparatorCondition::COMPARATOR_TO_CONDITION
Instance Method Summary collapse
- #visit(value) ⇒ Object private
Methods inherited from ComparatorCondition
Methods inherited from Node
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.
109 110 111 112 113 |
# File 'lib/jmespath/nodes/condition.rb', line 109 def visit(value) left_value = @left.visit(value) right_value = @right.visit(value) comparable?(left_value, right_value) && left_value > right_value ? @child.visit(value) : nil end |