Short question

You can use (e.g. in irb):
obj.methods for a list of accessible methods
obj.private_methods for a full list

I usually go with:
  def mds(thing)
    thing.methods.sort - Class.methods
  end

Which returns a nice and sort list of methods unique to that object
(pruning widely available methods).

HTH,
Assaph

···

-----Original Message-----

Hi,

just a short question:

Is there a way to "ask" an object or class what methods are available
from it?

This is not meant to be used inside a program but just as a quick
check, what I can do with what.

Ruby.use!
Meino