From 6b42073a3479705f326cf4dc91acb3bf07fe50eb Mon Sep 17 00:00:00 2001 From: kou Date: Sun, 2 Dec 2007 06:51:07 +0000 Subject: * lib/rss/rss.rb, test/rss/test_version.rb, NEWS: 0.2.1 -> 0.2.2. * lib/rss/maker/itunes.rb: fixed new_itunes_category. * lib/rss/maker/taxonomy.rb: new_taxo_topic -> new_topic because of consistency. * test/rss/test_maker_itunes.rb, test/rss/test_itunes.rb: removed needless UTF-8 characters. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rss/parser.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/rss/parser.rb') diff --git a/lib/rss/parser.rb b/lib/rss/parser.rb index 5edcf21e17..0c76d8fdff 100644 --- a/lib/rss/parser.rb +++ b/lib/rss/parser.rb @@ -391,8 +391,9 @@ module RSS def start_else_element(local, prefix, attrs, ns) class_name = self.class.class_name(_ns(ns, prefix), local) current_class = @last_element.class - if current_class.const_defined?(class_name) or - current_class.constants.include?(class_name) + if class_name and + (current_class.const_defined?(class_name) or + current_class.constants.include?(class_name)) next_class = current_class.const_get(class_name) start_have_something_element(local, prefix, attrs, ns, next_class) else -- cgit v1.2.3