Sha256: af4c148b1617099c1bc4f713e5c71e58ee3ed0567be38df45dfc243b8e7df904

Contents?: true

Size: 365 Bytes

Versions: 3

Compression:

Stored size: 365 Bytes

Contents

module Flows
  class Railway
    # @api private
    module DSL
      attr_reader :steps

      SingletonVarsSetup = Flows::Util::InheritableSingletonVars::DupStrategy.make_module(
        '@steps' => StepList.new
      )

      include SingletonVarsSetup

      def step(name, lambda = nil)
        steps.add(name: name, lambda: lambda)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flows-0.6.0 lib/flows/railway/dsl.rb
flows-0.5.1 lib/flows/railway/dsl.rb
flows-0.5.0 lib/flows/railway/dsl.rb