From 0cb0f3b7892cde23e75e0569cd4d48482980ddaf Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 4 Aug 2003 08:31:24 +0000 Subject: * doc/NEWS, doc/ChangeLog-1.8.0: added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- class.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'class.c') diff --git a/class.c b/class.c index 4d8db41f2..796fd26a7 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(); -- cgit