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

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?