1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* tool/serb.rb: removed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2007-12-24 06:29:43 +00:00
parent 1ce28af999
commit 29cbf75cd0
2 changed files with 4 additions and 17 deletions

View file

@ -1,3 +1,7 @@
Mon Dec 24 15:29:13 2007 Tanaka Akira <akr@fsij.org>
* tool/serb.rb: removed.
Mon Dec 24 13:55:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> Mon Dec 24 13:55:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* proc.c (rb_proc_new), vm.c (invoke_block): removed u3.state magic. * proc.c (rb_proc_new), vm.c (invoke_block): removed u3.state magic.

View file

@ -1,17 +0,0 @@
def serb(str, var)
result = ''
str.each_line {|line|
if /\A!/ =~ line
result << $'
else
line.split(/(<%.*?%>)/).each {|x|
if /\A<%(.*)%>\z/ =~ x
result << "#{var} << (#{$1}).to_s\n"
else
result << "#{var} << #{x.dump}\n"
end
}
end
}
result
end