diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-18 15:06:55 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-18 15:06:55 +0000 |
commit | 6cfd4dd1228831ea476be2f2c60e0bdd69d23eeb (patch) | |
tree | 6c7bee45e531c03fecf932e85bf697128b09527c /lib/rss/0.9.rb | |
parent | f29e486c7a914eba9bec81955650e74f4067b755 (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/0.9.rb')
-rw-r--r-- | lib/rss/0.9.rb | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/lib/rss/0.9.rb b/lib/rss/0.9.rb index f614eff0c8..4bb6a6e4b3 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 |