How to get the (class) method document or the method list of module?

K

kuangye

How to get the (class) method document or the method list of module?

In python, I can use __doc__ to get the method's document, and use dir
to get the method list of a class or module.

In ruby, Is there any builtin function like dir or __doc__ in python?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,227
Latest member
Daniella65

Latest Threads

Top