Class: JMESPath::Nodes::ComparatorCondition Private

Inherits:
Node
  • Object
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 collapse

COMPARATOR_TO_CONDITION =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

{}
COMPARABLE_TYPES =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

[Numeric, String].freeze

Instance Method Summary collapse

Methods inherited from Node

#chains_with?, #optimize

Constructor Details

#initialize(left, right, child) ⇒ ComparatorCondition

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.

Returns a new instance of ComparatorCondition.



33
34
35
36
37
# File 'lib/jmespath/nodes/condition.rb', line 33

def initialize(left, right, child)
  @left = left
  @right = right
  @child = child
end

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.



39
40
41
# File 'lib/jmespath/nodes/condition.rb', line 39

def visit(_value)
  nil
end