Module: Flows::Railway::DSL Private

Includes:
Util::InheritableSingletonVars::DupStrategy.make_module( '@steps' => StepList.new )
Included in:
Flows::Railway
Defined in:
lib/flows/railway/dsl.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 0.4.0

Constant Summary collapse

SingletonVarsSetup =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Since:

  • 0.4.0

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#stepsObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.4.0



5
6
7
# File 'lib/flows/railway/dsl.rb', line 5

def steps
  @steps
end

Instance Method Details

#step(name, lambda = nil) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.4.0



13
14
15
# File 'lib/flows/railway/dsl.rb', line 13

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