From 18061401ccace4d94bccd8a69466ef129684ed8f Mon Sep 17 00:00:00 2001 From: kou Date: Wed, 13 Apr 2005 14:48:00 +0000 Subject: * lib/rss/rss.rb (RSS::VERSION): 0.1.3 -> 0.1.4. * lib/rss/rss.rb (RSS::Element#converter): fixed converter transmission bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rss/rss.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'lib/rss') diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb index f9740a1c33..9ad4f4aeb6 100644 --- a/lib/rss/rss.rb +++ b/lib/rss/rss.rb @@ -66,7 +66,7 @@ require "rss/xml-stylesheet" module RSS - VERSION = "0.1.3" + VERSION = "0.1.4" URI = "http://purl.org/rss/1.0/" @@ -523,8 +523,12 @@ EOC def converter=(converter) @converter = converter - children.each do |child| - child.converter = converter unless child.nil? + targets = children.dup + self.class.have_children_elements.each do |variable_name, plural_name| + targets.concat(__send__(plural_name)) + end + targets.each do |target| + target.converter = converter unless target.nil? end end -- cgit v1.2.3