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

Discussion in 'Ruby' started by kuangye, Dec 9, 2009.

  1. kuangye

    kuangye Guest

    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?
     
    kuangye, Dec 9, 2009
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. E11
    Replies:
    1
    Views:
    4,937
    Thomas Weidenfeller
    Oct 12, 2005
  2. Sullivan WxPyQtKinter
    Replies:
    5
    Views:
    446
    Rene Pijlman
    Mar 7, 2006
  3. Iñaki Baz Castillo
    Replies:
    6
    Views:
    96
    Iñaki Baz Castillo
    Apr 6, 2008
  4. Iñaki Baz Castillo
    Replies:
    3
    Views:
    167
    Iñaki Baz Castillo
    May 2, 2008
  5. icogs
    Replies:
    0
    Views:
    154
    icogs
    Jan 31, 2008
Loading...

Share This Page