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/0.9.rb | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) (limited to 'lib/rss/0.9.rb') diff --git a/lib/rss/0.9.rb b/lib/rss/0.9.rb index f614eff0c..4bb6a6e4b 100644 --- a/lib/rss/0.9.rb +++ b/lib/rss/0.9.rb @@ -395,7 +395,7 @@ module RSS class Cloud < Element include RSS09 - + [ ["domain", "", true], ["port", "", true, :integer], @@ -424,14 +424,6 @@ module RSS rv = convert(rv) if need_convert rv end - - private - def _attrs - %w(domain port path registerProcedure protocol).collect do |attr| - [attr, true] - end - end - end class Item < Element @@ -540,13 +532,6 @@ module RSS [] end - def _attrs - [ - ["url", true] - ] - end - - def maker_target(item) item.source end @@ -587,14 +572,6 @@ module RSS end private - def _attrs - [ - ["url", true], - ["length", true], - ["type", true], - ] - end - def maker_target(item) item.enclosure end @@ -629,12 +606,6 @@ module RSS end private - def _attrs - [ - ["domain", false] - ] - end - def maker_target(item) item.new_category end -- cgit