Sha256: 43f6402779924c7e2cc02ce3b59464979daa3fdba4796415d0a93665147f4886

Contents?: true

Size: 812 Bytes

Versions: 1

Compression:

Stored size: 812 Bytes

Contents

module Trailblazer::V2_1
  # Implementation module that can be passed to `Activity[]`.
  class Activity < Module
    def self.Railway(options={})
      Railway.new(Railway, options)
    end

    class Railway < Activity
      def self.config
        Path.config.merge(
          builder_class:   Magnetic::Builder::Railway,
          default_outputs: Magnetic::Builder::Path.default_outputs,
          extend:          [
            DSL.def_dsl(:step, Magnetic::Builder::Railway, :StepPolarizations),
            DSL.def_dsl(:fail, Magnetic::Builder::Railway, :FailPolarizations),
            DSL.def_dsl(:pass, Magnetic::Builder::Railway, :PassPolarizations),
            DSL.def_dsl(:_end, Magnetic::Builder::Path,    :EndEventPolarizations), # TODO: TEST ME
          ],
        )
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trailblazer-future-2.1.0.rc1 lib/trailblazer/v2_1/activity/dsl/strategy/railway.rb