From: Bob Showalter Date: 2005-09-23T10:23:46+09:00 Subject: Re: class methods Mark Volkmann wrote: > On 9/22/05, Trans wrote: >> Class is an Object too, so >> >> MyClass.methods.sort.each {|m| puts m} > > The method "methods" returns ALL the methods. > I want just the class methods, those I can invoke without creating an > object from the class. > For example, querying the class Thread should give me "current", but > not "alive?". If you want only the methods that are specific to Thread: Thread.methods - Thread.class.methods (I'm new to ruby, so forgive me if this is not the correct approach)