mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rss/parser.rb (RSS::ListenerMixin::start_else_element): used
const_defined? instead of constants.include?. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
70db47aadb
commit
ef4273db33
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Feb 11 22:10:08 2007 Kouhei Sutou <kou@cozmixng.org>
|
||||
|
||||
* lib/rss/parser.rb (RSS::ListenerMixin::start_else_element): used
|
||||
const_defined? instead of constants.include?.
|
||||
|
||||
Sun Feb 11 18:47:14 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||
|
||||
* ext/win32ole/win32ole.c (ole_val2olevariantdata):
|
||||
|
|
|
@ -330,7 +330,7 @@ module RSS
|
|||
def start_else_element(local, prefix, attrs, ns)
|
||||
class_name = self.class.class_name(ns[prefix], local)
|
||||
current_class = @last_element.class
|
||||
if current_class.constants.include?(class_name)
|
||||
if current_class.const_defined?(class_name)
|
||||
next_class = current_class.const_get(class_name)
|
||||
start_have_something_element(local, prefix, attrs, ns, next_class)
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue