lib/grumlin/u.rb in grumlin-0.5.1 vs lib/grumlin/u.rb in grumlin-0.6.0

- old
+ new

@@ -1,10 +1,13 @@ # frozen_string_literal: true module Grumlin module U + # TODO: add other start steps + SUPPORTED_START_STEPS = %w[V addV count has out unfold values].freeze + class << self - %w[addV V has count out values unfold].each do |step| + SUPPORTED_START_STEPS.each do |step| define_method step do |*args| AnonymousStep.new(step, *args) end end end