Class: JMESPath::Nodes::Comparators::Gt Private

Inherits:
JMESPath::Nodes::Comparator show all
Defined in:
lib/jmespath/nodes/comparator.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.

Instance Attribute Summary

Attributes inherited from JMESPath::Nodes::Comparator

#left, #right

Instance Method Summary collapse

Methods inherited from JMESPath::Nodes::Comparator

create, #initialize, #optimize, #visit

Methods inherited from Node

#chains_with?, #hash_like?, #optimize, #visit

Constructor Details

This class inherits a constructor from JMESPath::Nodes::Comparator

Instance Method Details

#check(left_value, right_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.



56
57
58
# File 'lib/jmespath/nodes/comparator.rb', line 56

def check(left_value, right_value)
  left_value.is_a?(Integer) && right_value.is_a?(Integer) && left_value > right_value
end