Module: CircuitBreaker::WorkflowBuilder::DSL
- Defined in:
- lib/circuit_breaker/workflow_dsl.rb
Defined Under Namespace
Modules: PrettyPrint Classes: ActionBuilder, ActionContext, StateTransition, StateTransitionBuilder, Transition, TransitionBuilder, Workflow, WorkflowBuilder
Class Method Summary collapse
Class Method Details
.define(rules: nil, &block) ⇒ Object
352 353 354 355 356 |
# File 'lib/circuit_breaker/workflow_dsl.rb', line 352 def self.define(rules: nil, &block) builder = WorkflowBuilder.new(rules) builder.instance_eval(&block) builder.build end |