On 9/22/05, Mark Volkmann <r.mark.volkmann / gmail.com> 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