Why doesn't ri look into ancestor classes to find help?

Discussion in 'Ruby' started by Ilmari Heikkinen, Jan 17, 2005.

  1. Hello,

    This has flummoxed me quite a bit in using ri for finding method docs.
    Why doesn't this work?

    ri Hash#map

    (ruby 1.8.2, ruby 1.9.0 (2005-01-09))

    RDoc should have all the required info it needs to walk up the
    ancestors, since it knows the superclass of the class, and the modules
    mixed in. So when there isn't a hit, it should go up in the hierarchy
    instead of saying "Nothing known about Hash#map" and giving up.

    A little persistence, that is all I ask.

    --
    Ilmari Heikkinen
     
    Ilmari Heikkinen, Jan 17, 2005
    #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. Replies:
    0
    Views:
    355
  2. Luis P. Mendes
    Replies:
    3
    Views:
    364
    Bruno Desthuilliers
    Sep 15, 2006
  3. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,137
    Smokey Grindel
    Dec 2, 2006
  4. Replies:
    4
    Views:
    349
    Alf P. Steinbach
    Oct 7, 2007
  5. Amir Karger
    Replies:
    9
    Views:
    133
    Tassilo v. Parseval
    Dec 10, 2003
Loading...

Share This Page