lib/vedeu/output/renderers/all.rb in vedeu-0.4.22 vs lib/vedeu/output/renderers/all.rb in vedeu-0.4.23
- old
+ new
@@ -21,27 +21,19 @@
self
end
# @return [Array<void>]
def render(*args)
- # acc = []
threads = storage.map do |renderer|
Thread.new(renderer) do
mutex.synchronize do
Vedeu.log(type: :debug,
- message: "Sending to renderer: '#{renderer}'")
- # acc << renderer.render(*args)
+ message: "Rendering with: '#{renderer}' (#{storage.size} defined)")
renderer.render(*args)
end
end
end
threads.each(&:join)
- # acc
-
- # storage.inject([]) do |acc, renderer|
- # acc << renderer.render(*args)
- # acc
- # end
end
# Adds the given renderer class(es) to the list of renderers.
#
# @example