From: "s.ross" Date: 2009-06-17T03:37:22+09:00 Subject: Re: list methods only for specific class On Jun 16, 2009, at 12:04 AM, Robert Klemme wrote: > 2009/6/15 Daniel Roux : > >> Try: >> Student.new.public_methods(false) + >> Student.new.private_methods(false) >> => ["ms1", "ms2"] > > Why do you folks create instances? You can do this as well: > > cl = any_class > cl.instance_methods(false) - cl.private_instance_methods > > Kind regards > > robert Often, I'm most interested in methods unique to a given class and not those inherited from, say, Object: (Array.instance_methods - Array.private_instance_methods - Object.public_methods).sort And I sort them for easier reference. Don't know if this adds any information...