From: Phlip Date: 2008-12-18T04:02:40+09:00 Subject: Re: function discovery > [Note: parts of this message were removed to make it a legal post.] I express no curiosity about the illegal parts! (-; Joshua Ball wrote: > I am curious if there is a programatic way to list all methods of a class. > (Yes, I know about "ri", I am just curious here) ri only returns what the documentor felt like telling you. Here's my favorite wrapper on the 'public_methods' system: def what?(anObject) p anObject.class.name puts (anObject.public_methods - Object.new.public_methods).sort end Now you just say 'what? f', and it tells you what f's all about. It also throws away all the stuff f inherited from Object, because you should already know it! -- Phlip