summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-04 08:31:24 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-04 08:31:24 +0000
commit816803095da12023293cbd2793e22de52a751849 (patch)
treed5b0c85dbd9a9c293b4975274f84e43f1e11d22e /class.c
parent4aaa5493f94965fb3bbf85628f59310ff1a7a8d4 (diff)
* doc/NEWS, doc/ChangeLog-1.8.0: added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r--class.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/class.c b/class.c
index 4d8db41..796fd26 100644
--- a/class.c
+++ b/class.c
@@ -558,6 +558,8 @@ class_instance_method_list(argc, argv, mod, func)
list = st_init_numtable();
for (; mod; mod = RCLASS(mod)->super) {
st_foreach(RCLASS(mod)->m_tbl, method_entry, (st_data_t)list);
+ if (BUILTIN_TYPE(mod) == T_ICLASS) continue;
+ if (FL_TEST(mod, FL_SINGLETON)) continue;
if (!recur) break;
}
ary = rb_ary_new();