summaryrefslogtreecommitdiff
path: root/template/vm.inc.tmpl
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-12 06:28:23 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-12 06:28:23 (GMT)
commita10ded3ba0f6da6b4f881cd23858aef3d9eb5f29 (patch)
tree463ad4ea26443ca63f2cb58844b03531b756282a /template/vm.inc.tmpl
parent40d8d38909fe15a96887f4097d95d7323fc93fb7 (diff)
* bootstraptest/runner.rb, bootstraptest/test_method.rb, enc/depend,
instruby.rb, lib/mkmf.rb, lib/test/unit/util/procwrapper.rb, mkconfig.rb, sample/test.rb, template/vm.inc.tmpl, test/ruby/test_stringchar.rb: fixes arround String#gsub. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template/vm.inc.tmpl')
-rw-r--r--template/vm.inc.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/template/vm.inc.tmpl b/template/vm.inc.tmpl
index f79de97..d152665 100644
--- a/template/vm.inc.tmpl
+++ b/template/vm.inc.tmpl
@@ -13,7 +13,8 @@
<%=
line = 15
-vm_body.gsub(/\n|__CURRENT_LINE__|__CURRENT_FILE__/){|e|
+vm_body.gsub(/\n|__CURRENT_LINE__|__CURRENT_FILE__/){
+ e = $&
case e
when '__CURRENT_LINE__'
line.to_s