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

* lib/rss/rss.rb: fixed a indentation bug.

* lib/rss/taxonomy.rb: fixed <taxo:topic> #to_s bug.
* test/rss/test_taxonomy.rb: added a #to_s test.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kou 2005-11-23 08:44:05 +00:00
parent 7ff5d02f8b
commit f988ceb53b
4 changed files with 37 additions and 12 deletions

View file

@ -163,7 +163,6 @@ module RSS
def to_s(need_convert=true, indent=calc_indent)
rv = tag(indent) do |next_indent|
[
link_element(need_convert, next_indent),
other_element(need_convert, next_indent),
]
end
@ -189,6 +188,12 @@ module RSS
[@taxo_link, @taxo_topics]
end
def _attrs
[
["#{RDF::PREFIX}:about", true, "about"]
]
end
def _tags
rv = []
rv << [TAXO_URI, "link"] unless @taxo_link.nil?