diff options
| author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-17 00:21:24 +0000 |
|---|---|---|
| committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-17 00:21:24 +0000 |
| commit | 6e3ea97cbca7fa3eed47d74cf03353b2213902fd (patch) | |
| tree | c7b04a374b294bc82c6e40de9d2d526b26b24661 /lib/rss/taxonomy.rb | |
| parent | a79f93a4731ec59d11137d5265b38cac48fa39f4 (diff) | |
| download | ruby-6e3ea97cbca7fa3eed47d74cf03353b2213902fd.tar.gz ruby-6e3ea97cbca7fa3eed47d74cf03353b2213902fd.tar.xz ruby-6e3ea97cbca7fa3eed47d74cf03353b2213902fd.zip | |
* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)
* 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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/taxonomy.rb')
| -rw-r--r-- | lib/rss/taxonomy.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/rss/taxonomy.rb b/lib/rss/taxonomy.rb index c89de64d3..3eb5b893a 100644 --- a/lib/rss/taxonomy.rb +++ b/lib/rss/taxonomy.rb @@ -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? |
