From 856ca017c44bb1024d69e154eea3485e05dd7016 Mon Sep 17 00:00:00 2001 From: kou Date: Sun, 18 Jun 2006 15:06:55 +0000 Subject: * 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 --- lib/rss/taxonomy.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'lib/rss/taxonomy.rb') 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? -- cgit