diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-01-23 01:53:20 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-01-23 01:53:20 +0000 |
commit | 9b3c15dfd7520ff8bce3fc768dbe2aba2fecbd27 (patch) | |
tree | 057c505e8a9d1253766860250322daea97469c33 | |
parent | b81b47358438b376fd5b9b14c10c5b0412d302fe (diff) | |
download | ruby-9b3c15dfd7520ff8bce3fc768dbe2aba2fecbd27.tar.gz |
* class.c (rb_mod_ancestors): result list may include singleton
classes. [ruby-core:09604]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/matzruby@11557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | class.c | 2 |
2 files changed, 5 insertions, 2 deletions
@@ -193,6 +193,11 @@ Wed Dec 20 12:54:31 2006 Koichi Sasada <ko1@atdot.net> * Convert CVS repository to Subversion repository. +Tue Dec 19 10:41:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org> + + * class.c (rb_mod_ancestors): result list may include singleton + classes. [ruby-core:09604] + Mon Dec 18 08:36:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org> * lib/cgi.rb (CGI::Cookie::initialize): Array(string) no longer @@ -473,8 +473,6 @@ rb_mod_ancestors(VALUE mod) VALUE p, ary = rb_ary_new(); for (p = mod; p; p = RCLASS(p)->super) { - if (FL_TEST(p, FL_SINGLETON)) - continue; if (BUILTIN_TYPE(p) == T_ICLASS) { rb_ary_push(ary, RBASIC(p)->klass); } |