Rename Interpreter class as Worker

This commit is contained in:
Thibault Jouan
2014-01-09 01:08:49 +00:00
parent cdc3128727
commit 4c0a7f0fc7
4 changed files with 9 additions and 9 deletions

View File

@@ -0,0 +1,13 @@
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