Sha256: f068b96f91a451cf5b2d457b71b79e0c18567d79f4625a1b749005c6565b8a52

Contents?: true

Size: 358 Bytes

Versions: 8

Compression:

Stored size: 358 Bytes

Contents

# frozen_string_literal: true

module Grumlin
  class Traversal
    # TODO: add other start steps
    SUPPORTED_STEPS = %i[E V addE addV].freeze

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
grumlin-0.13.1 lib/grumlin/traversal.rb
grumlin-0.13.0 lib/grumlin/traversal.rb
grumlin-0.12.5 lib/grumlin/traversal.rb
grumlin-0.12.4 lib/grumlin/traversal.rb
grumlin-0.12.3 lib/grumlin/traversal.rb
grumlin-0.12.2 lib/grumlin/traversal.rb
grumlin-0.12.1 lib/grumlin/traversal.rb
grumlin-0.12.0 lib/grumlin/traversal.rb