Class: JMESPath::Nodes::Comparators::Gte 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.


66
67
68
69
70
71
72
# File 'lib/jmespath/nodes/comparator.rb', line 66

def check(left_value, right_value)
  if left_value.is_a?(Numeric) && right_value.is_a?(Numeric)
    left_value >= right_value
  else
    nil
  end
end