fix logging, oops
This commit is contained in:
parent
4ee3660077
commit
8432a5c669
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user