From: Joe Van Dyk Date: 2005-09-23T10:10:04+09:00 Subject: Re: class methods On 9/22/05, Mark Volkmann wrote: > I thought this would be easy, so it's embarassing to ask. > How can I get a list of the class methods in a given class? > I know I can get public instance methods like this. > > MyClass.instance_methods.sort.each {|m| puts m} MyClass.methods (I think) class Foo def self.class_method_foo end def public_method_foo end end Foo.methods.include? "class_method_foo" => true Foo.methods.include? "public_method_foo" => false