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 | 856ca017c44bb1024d69e154eea3485e05dd7016 (patch) | |
| tree | 6c7bee45e531c03fecf932e85bf697128b09527c /lib/rss/0.9.rb | |
| parent | 2c0c1e4949ecbb962645d3826edec359b6a10091 (diff) | |
| download | ruby-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/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 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 |
