lib/flows/railway/dsl.rb in flows-0.4.0 vs lib/flows/railway/dsl.rb in flows-0.5.0
- old
+ new
@@ -2,13 +2,14 @@
class Railway
# @api private
module DSL
attr_reader :steps
- Flows::Util::InheritableSingletonVars::DupStrategy.call(
- self,
+ 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