mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/erb.rb: Render erb with array buffer for function call optimization.
[fix GH-1143] * lib/rdoc/erb_partial.rb: ditto. * template/verconf.h.tmpl: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
365fae4dd9
commit
ec7a964dca
4 changed files with 15 additions and 8 deletions
|
@ -11,7 +11,7 @@ class RDoc::ERBPartial < ERB
|
|||
def set_eoutvar compiler, eoutvar = '_erbout'
|
||||
super
|
||||
|
||||
compiler.pre_cmd = ["#{eoutvar} ||= ''"]
|
||||
compiler.pre_cmd = ["#{eoutvar} ||= []"]
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue