diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-15 04:41:28 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-15 04:41:28 +0000 |
commit | 1b56bcce22a069eba6afb7e36f654783e5b4fbbc (patch) | |
tree | a95638b481c27eedfb67197660b22667466d5831 /lib/rss/parser.rb | |
parent | b528261ad821d84b6a392d9497cea6f199cba307 (diff) | |
download | ruby-1b56bcce22a069eba6afb7e36f654783e5b4fbbc.tar.gz |
* lib/rss.rb, lib/rss/, test/rss/:
- 0.1.9 -> 0.2.0.
- supported Slash module.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/parser.rb')
-rw-r--r-- | lib/rss/parser.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rss/parser.rb b/lib/rss/parser.rb index bf3b0b5d08..5856bddf29 100644 --- a/lib/rss/parser.rb +++ b/lib/rss/parser.rb @@ -365,7 +365,8 @@ 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) + if 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 |