Sha256: d2bbe9c4ecb0591acaa04d4200a7520e48f7c3da0e9b187693eeaf1654dbb578

Contents?: true

Size: 1.2 KB

Versions: 5

Compression:

Stored size: 1.2 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 :Comparator, '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 :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 & 2 rubygems

Version Path
burtpath-1.1.2 lib/jmespath/nodes.rb
burtpath-1.1.1 lib/jmespath/nodes.rb
jmespath-1.1.1 lib/jmespath/nodes.rb
jmespath-1.1.0 lib/jmespath/nodes.rb
burtpath-1.1.0 lib/jmespath/nodes.rb