summaryrefslogtreecommitdiff
path: root/lib/rss/0.9.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-19 16:12:45 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-19 16:12:45 +0000
commitb60b8361fdf87961e0538522624d692b8e82cc4c (patch)
tree485e53f3169d084c1f54f9a704095a4952eb0542 /lib/rss/0.9.rb
parenteb41c8d2e33603bbc993ca0778421ea0f12e7fb4 (diff)
* lib/rss/rss.rb:
- cleanup validation mechanism. Now, #XXX_validation is needless. - changed internal variable name RSS::Element::MODEL to RSS::Element::MODELS. - RSS::Element.install_model requires uri. * lib/rss/0.9.rb: followed new validation API. * lib/rss/1.0.rb: ditto. * lib/rss/2.0.rb: ditto. * lib/rss/content.rb: ditto. * lib/rss/dublincore.rb: ditto. * lib/rss/image.rb: ditto. * lib/rss/syndication.rb: ditto. * lib/rss/taxonomy.rb: ditto. * lib/rss/trackback.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/0.9.rb')
-rw-r--r--lib/rss/0.9.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/rss/0.9.rb b/lib/rss/0.9.rb
index d69e807d30..c05af201b8 100644
--- a/lib/rss/0.9.rb
+++ b/lib/rss/0.9.rb
@@ -22,7 +22,7 @@ module RSS
[
["channel", nil],
].each do |tag, occurs|
- install_model(tag, occurs)
+ install_model(tag, "", occurs)
end
%w(channel).each do |name|
@@ -109,7 +109,7 @@ module RSS
["textInput", "?", :have_child],
].each do |name, occurs, type, *args|
__send__("install_#{type}_element", name, *args)
- install_model(name, occurs)
+ install_model(name, "", occurs)
end
alias date pubDate
alias date= pubDate=
@@ -179,7 +179,7 @@ module RSS
["day", "*"]
].each do |name, occurs|
install_have_children_element(name)
- install_model(name, occurs)
+ install_model(name, "", occurs)
end
private
@@ -218,7 +218,7 @@ module RSS
["hour", "*"]
].each do |name, occurs|
install_have_children_element(name)
- install_model(name, occurs)
+ install_model(name, "", occurs)
end
private
@@ -255,7 +255,7 @@ module RSS
%w(url title link).each do |name|
install_text_element(name)
- install_model(name, nil)
+ install_model(name, "", nil)
end
[
["width", :integer],
@@ -263,7 +263,7 @@ module RSS
["description"],
].each do |name, type|
install_text_element(name, type)
- install_model(name, "?")
+ install_model(name, "", "?")
end
def initialize(*args)
@@ -335,7 +335,7 @@ module RSS
["enclosure", '?', :have_child],
].each do |tag, occurs, type, *args|
__send__("install_#{type}_element", tag, *args)
- install_model(tag, occurs)
+ install_model(tag, "", occurs)
end
private
@@ -486,7 +486,7 @@ module RSS
%w(title description name link).each do |name|
install_text_element(name)
- install_model(name, nil)
+ install_model(name, "", nil)
end
def initialize(*args)