Method: JMESPath::Nodes::EqCondition#optimize

Defined in:
lib/jmespath/nodes/condition.rb

#optimizeObject

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.



49
50
51
52
53
54
55
# File 'lib/jmespath/nodes/condition.rb', line 49

def optimize
  if @right.is_a?(Literal)
    LiteralRightEqCondition.new(@left, @right, @child)
  else
    self
  end
end