From: Xavier Noria Date: 2010-03-21T19:18:53+09:00 Subject: [ruby-core:28838] [Bug #2993] Module#instance_methods' flag seems to be ignored in singleton classes Issue #2993 has been updated by Xavier Noria. I think the problem is that class_instance_method_list in class.c assumes mod is an ordinary mod and thus singleton classes should be always skipped. The for loop has these lines: if (FL_TEST(mod, FL_SINGLETON)) continue; if (!recur) break; See, the recur flag is ignored even if mod was a singleton class in the first place. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/2993 ---------------------------------------- http://redmine.ruby-lang.org