lib/laminar/flow/step.rb in laminar-0.3.0 vs lib/laminar/flow/step.rb in laminar-0.4.0
- old
+ new
@@ -41,9 +41,13 @@
def branch(target, options = {})
branches << Branch.new(target, options)
end
alias goto branch
+ def endflow(options = {})
+ branches << Branch.new(:endflow, options)
+ end
+
# Find the next rule in the flow. Examines the branches associated
# with the current rule and returns the name of the first branch
# that satisfies its condition.
def next_step_name(impl_context)
branch = first_applicable_branch(impl_context)