fix logging, oops

This commit is contained in:
John Bintz 2012-04-10 09:58:39 -04:00
parent 4ee3660077
commit 8432a5c669

View File

@ -30,7 +30,16 @@ module Flowerbox
end end
def start(message) def start(message)
@reporters.each { |reporter| reporter.start(message) } on_each_reporter(:start, message)
end
def log(message)
on_each_reporter(:log, message)
end
private
def on_each_reporter(method, message)
@reporters.each { |reporter| reporter.send(method, message) }
end end
end end
end end