Method: Attr::Gather::Workflow::TaskGraph#initialize
- Defined in:
- lib/attr/gather/workflow/task_graph.rb
#initialize(tasks: []) ⇒ TaskGraph
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.
Returns a new instance of TaskGraph.
19 20 21 22 |
# File 'lib/attr/gather/workflow/task_graph.rb', line 19 def initialize(tasks: []) @tasks_hash = {} tasks.each { |t| self << t } end |