Sha256: b183fd5ce2ba88455e444cb199704412792cdd481faa3576ef4f92e248c45f8d

Contents?: true

Size: 406 Bytes

Versions: 4

Compression:

Stored size: 406 Bytes

Contents

# frozen_string_literal: true

module Grumlin
  class Traversal
    attr_reader :connection

    # TODO: add other start steps
    SUPPORTED_START_STEPS = %w[E V addE addV].freeze

    def initialize(pool = Grumlin.config.default_pool)
      @pool = pool
    end

    SUPPORTED_START_STEPS.each do |step|
      define_method step do |*args|
        Step.new(@pool, step, *args)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
grumlin-0.7.0 lib/grumlin/traversal.rb
grumlin-0.6.2 lib/grumlin/traversal.rb
grumlin-0.6.1 lib/grumlin/traversal.rb
grumlin-0.6.0 lib/grumlin/traversal.rb