Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Ruby (http://www.velocityreviews.com/forums/f66-ruby.html)
-   -   How to get the (class) method document or the method list of module? (http://www.velocityreviews.com/forums/t860805-how-to-get-the-class-method-document-or-the-method-list-of-module.html)

kuangye 12-09-2009 03:48 PM

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?







All times are GMT. The time now is 03:42 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.