2014-01-09 01:08:49 +00:00

14 lines
240 B
Ruby

module Producer
module Core
class Worker
def process(tasks)
tasks.each { |t| process_task t }
end
def process_task(task)
task.actions.each(&:apply) if task.condition_met?
end
end
end
end