lib/grumlin/traversal.rb in grumlin-0.5.1 vs lib/grumlin/traversal.rb in grumlin-0.6.0
- old
+ new
@@ -2,20 +2,19 @@
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
- # TODO: add other start steps
- %w[addV addE V E].each do |step|
+ SUPPORTED_START_STEPS.each do |step|
define_method step do |*args|
Step.new(@pool, step, *args)
end
end
-
- alias addVertex addV
- alias addEdge addE
end
end