Hi --

On Fri, 23 Sep 2005, 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}

See other answers for main answer, but also:

   puts array

is the same as

   array.each {|e| puts e }

:-)


David


-- 
David A. Black
dblack / wobblini.net