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

Constant Summary

Constants inherited from JMESPath::Nodes::Comparator

JMESPath::Nodes::Comparator::COMPARABLE_TYPES

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



52
53
54
# File 'lib/jmespath/nodes/comparator.rb', line 52

def check(left_value, right_value)
  Util.as_json(left_value) == Util.as_json(right_value)
end