lib/grumlin/traversal.rb in grumlin-0.15.3 vs lib/grumlin/traversal.rb in grumlin-0.15.4

- old
+ new

@@ -1,12 +1,11 @@ # frozen_string_literal: true module Grumlin class Traversal - # TODO: add other start steps - SUPPORTED_STEPS = %i[E V addE addV].freeze + SUPPORTED_STEPS = Grumlin.definitions.dig(:steps, :start).map(&:to_sym).freeze - CONFIGURATION_STEPS = %i[withSack withSideEffect].freeze + CONFIGURATION_STEPS = Grumlin.definitions.dig(:steps, :configuration).map(&:to_sym).freeze attr_reader :configuration_steps def initialize(pool = Grumlin.default_pool, configuration_steps: []) @pool = pool