Sha256: c61c049cd9da65b69ddecdcfe0112a2953b0b719cda880ed69f7116c342ff619

Contents?: true

Size: 1.33 KB

Versions: 5

Compression:

Stored size: 1.33 KB

Contents

module JMESPath
  # @api private
  module Nodes
    class Node
      def visit(value)
      end

      def hash_like?(value)
        Hash === value || Struct === value
      end

      def optimize
        self
      end

      def chains_with?(other)
        false
      end
    end

    autoload :And, 'jmespath/nodes/and'
    autoload :Comparator, 'jmespath/nodes/comparator'
    autoload :Comparators, 'jmespath/nodes/comparator'
    autoload :Condition, 'jmespath/nodes/condition'
    autoload :Current, 'jmespath/nodes/current'
    autoload :Expression, 'jmespath/nodes/expression'
    autoload :Field, 'jmespath/nodes/field'
    autoload :Flatten, 'jmespath/nodes/flatten'
    autoload :Function, 'jmespath/nodes/function'
    autoload :Index, 'jmespath/nodes/index'
    autoload :Literal, 'jmespath/nodes/literal'
    autoload :MultiSelectHash, 'jmespath/nodes/multi_select_hash'
    autoload :MultiSelectList, 'jmespath/nodes/multi_select_list'
    autoload :Not, 'jmespath/nodes/not'
    autoload :Or, 'jmespath/nodes/or'
    autoload :Pipe, 'jmespath/nodes/pipe'
    autoload :Projection, 'jmespath/nodes/projection'
    autoload :ArrayProjection, 'jmespath/nodes/projection'
    autoload :ObjectProjection, 'jmespath/nodes/projection'
    autoload :Slice, 'jmespath/nodes/slice'
    autoload :Subexpression, 'jmespath/nodes/subexpression'

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jmespath-1.2.4 lib/jmespath/nodes.rb
jmespath-1.2.3 lib/jmespath/nodes.rb
jmespath-1.2.2 lib/jmespath/nodes.rb
jmespath-1.2.1 lib/jmespath/nodes.rb
jmespath-1.2 lib/jmespath/nodes.rb