Class: JMESPath::Nodes::GteCondition Private

Inherits:
ComparatorCondition show all
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

Methods inherited from ComparatorCondition

#initialize

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.


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)
  left_value.is_a?(Integer) && right_value.is_a?(Integer) && left_value >= right_value ? @child.visit(value) : nil
end