diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-03 15:31:57 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-03 15:31:57 +0000 |
commit | 73a9963ddffe4108b67918df7647a1f05914a2f9 (patch) | |
tree | 62f2f962baf6a263fb7b5295287a8cb6feff8927 /lib/rss/rss.rb | |
parent | 58d0a3de500e1896a843a11dc398d3824298dc85 (diff) | |
download | ruby-73a9963ddffe4108b67918df7647a1f05914a2f9.tar.gz |
* lib/rss: supported Image module.
http://web.resource.org/rss/1.0/modules/image/
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/rss.rb')
-rw-r--r-- | lib/rss/rss.rb | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb index 7ffb475007..848fbd7b79 100644 --- a/lib/rss/rss.rb +++ b/lib/rss/rss.rb @@ -627,12 +627,22 @@ EOC def setup_maker_element(target) self.class.need_initialize_variables.each do |var| - setter = "#{var}=" - if target.respond_to?(setter) - target.__send__(setter, __send__(var)) + value = __send__(var) + if value.respond_to?("setup_maker") and + !not_need_to_call_setup_maker_variables.include?(var) + value.setup_maker(target) + else + setter = "#{var}=" + if target.respond_to?(setter) + target.__send__(setter, value) + end end end end + + def not_need_to_call_setup_maker_variables + [] + end def setup_maker_elements(parent) self.class.have_children_elements.each do |name, plural_name| |