lib/grumlin/traversal.rb in grumlin-0.11.0 vs lib/grumlin/traversal.rb in grumlin-0.12.0
- old
+ new
@@ -1,18 +1,16 @@
# 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
+ SUPPORTED_STEPS = %i[E V addE addV].freeze
def initialize(pool = Grumlin.default_pool)
@pool = pool
end
- SUPPORTED_START_STEPS.each do |step|
+ SUPPORTED_STEPS.each do |step|
define_method step do |*args|
Step.new(@pool, step, *args)
end
end
end