benchmarks/template_erb.rb in yard-0.9.12 vs benchmarks/template_erb.rb in yard-0.9.13

- old
+ new

@@ -10,10 +10,10 @@ x.report("trim-line") { TIMES.times { obj.format(:format => :html) } } module YARD module Templates module Template def erb(section, &block) - erb = ERB.new(cache(section), nil) + erb = ERB.new(cache(section)) erb.filename = cache_filename(section).to_s erb.result(binding, &block) end end end