mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/rss/test_xml-stylesheet.rb: added tests for xml-stylesheet.
* lib/rss/xml-stylesheet.rb: added xml-stylesheet parsing function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2639d6dc80
commit
7ead69e5b3
15 changed files with 385 additions and 85 deletions
|
@ -3,10 +3,8 @@ module RSS
|
|||
module Utils
|
||||
|
||||
def get_file_and_line_from_caller(i=0)
|
||||
tmp = caller[i].split(':')
|
||||
line = tmp.pop.to_i
|
||||
file = tmp.join(':')
|
||||
[file, line]
|
||||
file, line, = caller[i].split(':')
|
||||
[file, line.to_i]
|
||||
end
|
||||
|
||||
def html_escape(s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue