Class: DRbQS::Task::TaskSet::ContainerWithoutHook
- Defined in:
- lib/drbqs/task/task.rb
Overview
Class to group a number of objects to process tasks.
Instance Method Summary collapse
- #exec ⇒ Object
-
#initialize(task_ary) ⇒ ContainerWithoutHook
constructor
A new instance of ContainerWithoutHook.
Methods inherited from Container
Constructor Details
#initialize(task_ary) ⇒ ContainerWithoutHook
Returns a new instance of ContainerWithoutHook.
139 140 141 142 143 |
# File 'lib/drbqs/task/task.rb', line 139 def initialize(task_ary) @data = task_ary.map.with_index do |task, i| task.drb_args(i)[2..-1] end end |
Instance Method Details
#exec ⇒ Object
145 146 147 148 149 |
# File 'lib/drbqs/task/task.rb', line 145 def exec @data.map do |ary| DRbQS::Task.execute_task(*ary) end end |