Class: JMESPath::Nodes::LtCondition 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::COMPARABLE_TYPES, ComparatorCondition::COMPARATOR_TO_CONDITION

Instance Method Summary collapse

Methods inherited from ComparatorCondition

#initialize

Methods inherited from Node

#chains_with?, #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.



129
130
131
132
133
# File 'lib/jmespath/nodes/condition.rb', line 129

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