diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-20 11:50:52 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-20 11:50:52 +0000 |
commit | 028e6396c043119448afce67ebf8f3aafc96e27e (patch) | |
tree | f7becf9f31f4b06efa89c290ca14bbde1e82a864 /lib/rss/dublincore.rb | |
parent | 75823801a26e35d215fbfd243bd9bd6619a84eca (diff) |
* lib/rss/rss.rb: hide RSS::Element.install_model.
(RSS::Element.install_have_child_element,
RSS::Element.install_have_children_element,
RSS::Element.install_text_element,
RSS::Element.install_date_element): call
RSS::Element.install_model internally.
* lib/rss/0.9.rb: followed new 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@10341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/dublincore.rb')
-rw-r--r-- | lib/rss/dublincore.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rss/dublincore.rb b/lib/rss/dublincore.rb index 8badc8bb1e..8a4afd4dd9 100644 --- a/lib/rss/dublincore.rb +++ b/lib/rss/dublincore.rb @@ -18,8 +18,8 @@ module RSS full_plural_name = "#{DC_PREFIX}_#{plural}" klass_name = "DublinCore#{Utils.to_class_name(name)}" klass.install_must_call_validator(DC_PREFIX, DC_URI) - klass.install_model(name, DC_URI, "*") - klass.install_have_children_element(full_name, full_plural_name) + klass.install_have_children_element(name, DC_URI, "*", + full_name, full_plural_name) klass.module_eval(<<-EOC, *get_file_and_line_from_caller(0)) remove_method :#{full_name} remove_method :#{full_name}= |