Class: Roast::Workflow::Validators::StepCollector
- Inherits:
-
Object
- Object
- Roast::Workflow::Validators::StepCollector
- Defined in:
- lib/roast/workflow/validators/step_collector.rb
Overview
Collects and caches all steps from a workflow configuration
Instance Method Summary collapse
- #all_steps ⇒ Object
-
#initialize(parsed_yaml) ⇒ StepCollector
constructor
A new instance of StepCollector.
Constructor Details
#initialize(parsed_yaml) ⇒ StepCollector
Returns a new instance of StepCollector.
8 9 10 11 |
# File 'lib/roast/workflow/validators/step_collector.rb', line 8 def initialize(parsed_yaml) @parsed_yaml = parsed_yaml @all_steps = nil end |
Instance Method Details
#all_steps ⇒ Object
13 14 15 |
# File 'lib/roast/workflow/validators/step_collector.rb', line 13 def all_steps @all_steps ||= collect_all_steps(@parsed_yaml) end |