summaryrefslogtreecommitdiff
path: root/lib/rss/0.9.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-20 12:20:13 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-20 12:20:13 +0000
commit7625cd5cfb3ea4609db79a1ee959f7186fa8b535 (patch)
tree143100697def896d9ea0e6aff3264c5adfb34b54 /lib/rss/0.9.rb
parentdf1e494a136dc507b36e90edbaffdeb611ab8923 (diff)
* lib/rss/rss.rb: provided default RSS::Element#children.
* lib/rss/0.9.rb: used default RSS::Element#children. * lib/rss/1.0.rb: ditto. * lib/rss/2.0.rb: ditto. * lib/rss/taxonomy.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/0.9.rb')
-rw-r--r--lib/rss/0.9.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/rss/0.9.rb b/lib/rss/0.9.rb
index 4007391f98..eb2d828102 100644
--- a/lib/rss/0.9.rb
+++ b/lib/rss/0.9.rb
@@ -61,10 +61,6 @@ module RSS
end
private
- def children
- [@channel]
- end
-
def _attrs
[
["version", true, "rss_version"],
@@ -100,10 +96,6 @@ module RSS
alias date= pubDate=
private
- def children
- [@skipDays, @skipHours, @image, @textInput, @cloud, *@item]
- end
-
def maker_target(maker)
maker.channel
end
@@ -137,11 +129,6 @@ module RSS
install_have_children_element(name, "", occurs)
end
- private
- def children
- @day
- end
-
class Day < Element
include RSS09
@@ -169,11 +156,6 @@ module RSS
install_have_children_element(name, "", occurs)
end
- private
- def children
- @hour
- end
-
class Hour < Element
include RSS09
@@ -270,10 +252,6 @@ module RSS
end
private
- def children
- [@source, @enclosure, *@category].compact
- end
-
def maker_target(items)
if items.respond_to?("items")
# For backward compatibility