--nextPart2169793.ukYMV9Y3RO Content-Type: text/plain; charset so-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 22 September 2005 9:19, Mark Volkmann wrote: > On 9/22/05, Trans <transfire / gmail.com> 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?". I think you're looking for Thread.singleton_methods: irb(main):001:0> Thread.singleton_methods => ["stop", "abort_on_exception", "current", "new", "fork", "critical", "abort_on_exception=", "pass", "start", "exit", "list", "critical=", "kill", "main"] -- Jason Voegele You will always find something in the last place you look. --nextPart2169793.ukYMV9Y3RO Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBDM1y8hnQPOwpx0DURAmqMAJ4544uA5RMSTACTFHvjqKTrnn51hgCfRul7 Kgfcc8xH92VlF+zUdU4i7N8 5f -----END PGP SIGNATURE----- --nextPart2169793.ukYMV9Y3RO--