summaryrefslogtreecommitdiffstats
path: root/lib/rss/taxonomy.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-18 15:06:55 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-18 15:06:55 +0000
commit856ca017c44bb1024d69e154eea3485e05dd7016 (patch)
tree6c7bee45e531c03fecf932e85bf697128b09527c /lib/rss/taxonomy.rb
parent2c0c1e4949ecbb962645d3826edec359b6a10091 (diff)
downloadruby-856ca017c44bb1024d69e154eea3485e05dd7016.tar.gz
ruby-856ca017c44bb1024d69e154eea3485e05dd7016.tar.xz
ruby-856ca017c44bb1024d69e154eea3485e05dd7016.zip
* lib/rss/rss.rb: automatically detected attributes.
* lib/rss/0.9.rb: removed #_attrs. * lib/rss/1.0.rb: ditto. * lib/rss/2.0.rb: ditto. * lib/rss/image.rb: ditto. * lib/rss/taxonomy.rb: ditto. * lib/rss/trackback.rb: ditto. * lib/rss/parser.rb: followed new internal API. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/taxonomy.rb')
-rw-r--r--lib/rss/taxonomy.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/rss/taxonomy.rb b/lib/rss/taxonomy.rb
index 70a9d442c..7dd22707f 100644
--- a/lib/rss/taxonomy.rb
+++ b/lib/rss/taxonomy.rb
@@ -157,7 +157,8 @@ module RSS
@tag_name = "topic"
- install_get_attribute("about", ::RSS::RDF::URI, true)
+ install_get_attribute("about", ::RSS::RDF::URI, true, nil, nil,
+ "#{RDF::PREFIX}:about")
install_text_element("#{TAXO_PREFIX}_link")
def initialize(*args)
@@ -205,12 +206,6 @@ 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?