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. Advertisements

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:
    5,755
    Thomas Weidenfeller
    Oct 12, 2005
  2. roopa
    Replies:
    6
    Views:
    1,025
    Jerry Coffin
    Aug 27, 2004
  3. Sullivan WxPyQtKinter
    Replies:
    5
    Views:
    631
    Rene Pijlman
    Mar 7, 2006
  4. Farrel Lifson

    Mixin a module method as a class method

    Farrel Lifson, Oct 18, 2006, in forum: Ruby
    Replies:
    9
    Views:
    254
    Trans
    Oct 19, 2006
  5. Replies:
    1
    Views:
    279
    Trans
    Feb 5, 2007
  6. Iñaki Baz Castillo
    Replies:
    6
    Views:
    180
    Iñaki Baz Castillo
    Apr 6, 2008
  7. Iñaki Baz Castillo
    Replies:
    3
    Views:
    249
    Iñaki Baz Castillo
    May 2, 2008
  8. icogs
    Replies:
    0
    Views:
    240
    icogs
    Jan 31, 2008
Loading...