summaryrefslogtreecommitdiff
path: root/lib/rss/0.9.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-20 12:06:52 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-20 12:06:52 +0000
commitdf1e494a136dc507b36e90edbaffdeb611ab8923 (patch)
tree4e93ad2100a27a46c2261e17916981aa0afec34d /lib/rss/0.9.rb
parent028e6396c043119448afce67ebf8f3aafc96e27e (diff)
* lib/rss/rss.rb: provided default RSS::Element#_tags.
* lib/rss/0.9.rb: used default RSS::Element#_tags. * lib/rss/1.0.rb: ditto. * lib/rss/2.0.rb: ditto. * lib/rss/image.rb: ditto. * lib/rss/taxonomy.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/0.9.rb')
-rw-r--r--lib/rss/0.9.rb84
1 files changed, 0 insertions, 84 deletions
diff --git a/lib/rss/0.9.rb b/lib/rss/0.9.rb
index 24af74a4ce..4007391f98 100644
--- a/lib/rss/0.9.rb
+++ b/lib/rss/0.9.rb
@@ -65,14 +65,6 @@ module RSS
[@channel]
end
- def _tags
- [
- ["", 'channel'],
- ].delete_if do |uri, name|
- __send__(name).nil?
- end
- end
-
def _attrs
[
["version", true, "rss_version"],
@@ -112,35 +104,6 @@ module RSS
[@skipDays, @skipHours, @image, @textInput, @cloud, *@item]
end
- def _tags
- rv = [
- "title",
- "link",
- "description",
- "language",
- "copyright",
- "managingEditor",
- "webMaster",
- "rating",
- "docs",
- "skipDays",
- "skipHours",
- "image",
- "textInput",
- "cloud",
- ].delete_if do |name|
- __send__(name).nil?
- end.collect do |elem|
- ["", elem]
- end
-
- @item.each do
- rv << ["", "item"]
- end
-
- rv
- end
-
def maker_target(maker)
maker.channel
end
@@ -179,12 +142,6 @@ module RSS
@day
end
- def _tags
- @day.compact.collect do
- ["", "day"]
- end
- end
-
class Day < Element
include RSS09
@@ -217,12 +174,6 @@ module RSS
@hour
end
- def _tags
- @hour.compact.collect do
- ["", "hour"]
- end
- end
-
class Hour < Element
include RSS09
@@ -270,14 +221,6 @@ module RSS
end
private
- def _tags
- %w(url title link width height description).delete_if do |name|
- __send__(name).nil?
- end.collect do |elem|
- ["", elem]
- end
- end
-
def maker_target(maker)
maker.image
end
@@ -331,21 +274,6 @@ module RSS
[@source, @enclosure, *@category].compact
end
- def _tags
- rv = %w(title link description author comments
- source enclosure).delete_if do |name|
- __send__(name).nil?
- end.collect do |name|
- ["", name]
- end
-
- @category.each do
- rv << ["", "category"]
- end
-
- rv
- end
-
def maker_target(items)
if items.respond_to?("items")
# For backward compatibility
@@ -383,10 +311,6 @@ module RSS
end
private
- def _tags
- []
- end
-
def maker_target(item)
item.source
end
@@ -489,14 +413,6 @@ module RSS
end
private
- def _tags
- %w(title description name link).each do |name|
- __send__(name).nil?
- end.collect do |elem|
- ["", elem]
- end
- end
-
def maker_target(maker)
maker.textinput
end