Sha256: becd60e2301129164917f3be3e0216a18ec842b8e67ae4d5ddaf36d6eda578c4

Contents?: true

Size: 510 Bytes

Versions: 12

Compression:

Stored size: 510 Bytes

Contents

# frozen_string_literal: true

module Grumlin
  module Expressions
    module WithOptions
      WITH_OPTIONS = {
        tokens: "~tinkerpop.valueMap.tokens",
        none: 0,
        ids: 1,
        labels: 2,
        keys: 4,
        values: 8,
        all: 15,
        indexer: "~tinkerpop.index.indexer",
        list: 0,
        map: 1
      }.freeze

      class << self
        WITH_OPTIONS.each do |k, v|
          define_method k do
            v
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
grumlin-0.15.3 lib/grumlin/expressions/with_options.rb
grumlin-0.15.2 lib/grumlin/expressions/with_options.rb
grumlin-0.15.1 lib/grumlin/expressions/with_options.rb
grumlin-0.15.0 lib/grumlin/expressions/with_options.rb
grumlin-0.14.5 lib/grumlin/expressions/with_options.rb
grumlin-0.14.4 lib/grumlin/expressions/with_options.rb
grumlin-0.14.3 lib/grumlin/expressions/with_options.rb
grumlin-0.14.2 lib/grumlin/expressions/with_options.rb
grumlin-0.14.1 lib/grumlin/expressions/with_options.rb
grumlin-0.14.0 lib/grumlin/expressions/with_options.rb
grumlin-0.13.1 lib/grumlin/expressions/with_options.rb
grumlin-0.13.0 lib/grumlin/expressions/with_options.rb