summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-23 01:53:20 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-23 01:53:20 +0000
commit9b3c15dfd7520ff8bce3fc768dbe2aba2fecbd27 (patch)
tree057c505e8a9d1253766860250322daea97469c33 /class.c
parentb81b47358438b376fd5b9b14c10c5b0412d302fe (diff)
downloadruby-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
Diffstat (limited to 'class.c')
-rw-r--r--class.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/class.c b/class.c
index c7fc1df370..afe313ddde 100644
--- a/class.c
+++ b/class.c
@@ -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);
}