summaryrefslogtreecommitdiff
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
commit6cfd4dd1228831ea476be2f2c60e0bdd69d23eeb (patch)
tree6c7bee45e531c03fecf932e85bf697128b09527c /lib/rss/taxonomy.rb
parentf29e486c7a914eba9bec81955650e74f4067b755 (diff)
* 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: svn+ssh://ci.ruby-lang.org/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 70a9d442cd..7dd22707f7 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?