producer-core/lib/producer/core/interpreter.rb
2013-08-16 19:30:51 +00:00

14 lines
222 B
Ruby

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