summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-07 17:54:49 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-07 17:54:49 +0000
commitdfde34cb3c968f3238afcfd05298bc6b88585bcb (patch)
tree634eea6b870bfb289dd47c3b2ab087353218ed16 /class.c
parent221f2a1d8a7c42165b3144fbf22b9585e3026e18 (diff)
* class.c (rb_mod_ancestors): Include singleton_class in ancestors list
[Feature #8035] * test/ruby/test_module.rb (class): test for above * test/ruby/marshaltestlib.rb (module): adapt test * NEWS: list change git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39628 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 b8e47df..36b7f0d 100644
--- a/class.c
+++ b/class.c
@@ -909,8 +909,6 @@ rb_mod_ancestors(VALUE mod)
VALUE p, ary = rb_ary_new();
for (p = mod; p; p = RCLASS_SUPER(p)) {
- if (FL_TEST(p, FL_SINGLETON))
- continue;
if (BUILTIN_TYPE(p) == T_ICLASS) {
rb_ary_push(ary, RBASIC(p)->klass);
}