Sha256: 194ea374053213d3b25a39c7a29d98dead16fa170d2c416c233eeca6db860945

Contents?: true

Size: 317 Bytes

Versions: 1

Compression:

Stored size: 317 Bytes

Contents

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

      Flows::Util::InheritableSingletonVars::DupStrategy.call(
        self,
        '@steps' => StepList.new
      )

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flows-0.4.0 lib/flows/railway/dsl.rb