S
Stefan Salewski
I think I can replace this code
@scr = @output.dup
@png = @output.dup
@pdf = @output.dup
@svg = @output.dup
@ps = @output.dup
with this equivalent:
@scr, @png, @pdf, @svg, @ps = Array.new(5).map!{|x| @output.dup}
Is there a nicer variant available?
(Of course @scr, @png, @pdf, @svg, @ps = @output.dup will not work, I
need 5 independent instances.)
Thanks,
Stefan Salewski
@scr = @output.dup
@png = @output.dup
@pdf = @output.dup
@svg = @output.dup
@ps = @output.dup
with this equivalent:
@scr, @png, @pdf, @svg, @ps = Array.new(5).map!{|x| @output.dup}
Is there a nicer variant available?
(Of course @scr, @png, @pdf, @svg, @ps = @output.dup will not work, I
need 5 independent instances.)
Thanks,
Stefan Salewski