Class: Libis::Workflow::TaskGroup
- Defined in:
- lib/libis/workflow/task_group.rb
Overview
noinspection RubyTooManyMethodsInspection
Direct Known Subclasses
Instance Attribute Summary collapse
-
#tasks ⇒ Object
Returns the value of attribute tasks.
Attributes inherited from Task
#name, #parent, #processing_item, #workitem
Instance Method Summary collapse
- #<<(task) ⇒ Object
- #apply_options(opts) ⇒ Object
-
#initialize(parent, cfg = {}) ⇒ TaskGroup
constructor
A new instance of TaskGroup.
Methods inherited from Task
#logger, #message, #namepath, #names, #root_task, #run, task_classes
Constructor Details
#initialize(parent, cfg = {}) ⇒ TaskGroup
Returns a new instance of TaskGroup.
14 15 16 17 |
# File 'lib/libis/workflow/task_group.rb', line 14 def initialize(parent, cfg = {}) self.tasks = [] super parent, cfg end |
Instance Attribute Details
#tasks ⇒ Object
Returns the value of attribute tasks.
12 13 14 |
# File 'lib/libis/workflow/task_group.rb', line 12 def tasks @tasks end |
Instance Method Details
#<<(task) ⇒ Object
19 20 21 22 |
# File 'lib/libis/workflow/task_group.rb', line 19 def <<(task) self.tasks << task task.parent = self end |
#apply_options(opts) ⇒ Object
24 25 26 27 28 29 |
# File 'lib/libis/workflow/task_group.rb', line 24 def (opts) super opts self.tasks.each do |task| task. opts end end |