summaryrefslogtreecommitdiff
path: root/lib/rss/parser.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-02 06:45:53 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-02 06:45:53 +0000
commit4fab2c7526c160bef4db28871864c53c60a6c587 (patch)
treec44b5c4c7419fbd7542760e29ce3f8ab517e4ebe /lib/rss/parser.rb
parentf3e3ce4c8241e1c6aa2afca5468d7fb69b93c47b (diff)
* lib/rss/rss.rb, test/rss/test_version.rb: 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/trunk@14081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/parser.rb')
-rw-r--r--lib/rss/parser.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rss/parser.rb b/lib/rss/parser.rb
index 5856bddf29..b716dd8bdf 100644
--- a/lib/rss/parser.rb
+++ b/lib/rss/parser.rb
@@ -365,8 +365,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, false) or
- current_class.constants.include?(class_name.to_sym)
+ if class_name and
+ (current_class.const_defined?(class_name, false) or
+ current_class.constants.include?(class_name.to_sym))
next_class = current_class.const_get(class_name)
start_have_something_element(local, prefix, attrs, ns, next_class)
else