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:
parent
1ce28af999
commit
29cbf75cd0
2 changed files with 4 additions and 17 deletions
|
@ -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>
|
||||
|
||||
* proc.c (rb_proc_new), vm.c (invoke_block): removed u3.state magic.
|
||||
|
|
17
tool/serb.rb
17
tool/serb.rb
|
@ -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
|
Loading…
Reference in a new issue