Sha256: bc0eadbafbdc140d224e9cbd0acf2fc5a572c5b14527c3e67bc4fb767b2cbc62

Contents?: true

Size: 504 Bytes

Versions: 6

Compression:

Stored size: 504 Bytes

Contents

# frozen_string_literal: true

module Grumlin
  module Tools
    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

6 entries across 6 versions & 1 rubygems

Version Path
grumlin-0.12.5 lib/grumlin/tools/with_options.rb
grumlin-0.12.4 lib/grumlin/tools/with_options.rb
grumlin-0.12.3 lib/grumlin/tools/with_options.rb
grumlin-0.12.2 lib/grumlin/tools/with_options.rb
grumlin-0.12.1 lib/grumlin/tools/with_options.rb
grumlin-0.12.0 lib/grumlin/tools/with_options.rb