Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: RDOC Question -- including parent class accessors, and linking other classes
SER
11/13/2004 11:19:00 AM
On Friday 12 November 2004 14:54, Dave Thomas wrote:
> RDoc doesn't currently let you do this: the problem really is knowing
> where to stop--do you document all of the parent's methods, and its
> parent's methods, and so on.
>
> I'm open to ideas here.
Hi Dave,
May I humbly suggest emulating what Javadoc does? Document the class methods,
and _list_ the ancestor methods, by class, with links to the methods. So:
class A
def a ...
class B < A
def b...
class C < B
def c
would generate, for C:
Class C
... documentation for #c ...
Methods from B
... link to #b ...
Methods from A
... link to #a ...
The methods that C answers to are clearly declared, and shown in which class
they are defined. It clutters the documentation for C minimally, as the
methods are declared, not defined.
--
### SER
### Deutsch|Esperanto|Francaise|Linux|XML|Java|Ruby|Aikido
###
http://www.germane-softwar...
jabber.com:ser ICQ:83578737
### GPG:
http://www.germane-softwar...
/Security/ser_public.gpg
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: RDOC Question -- including parent class accessors, and linking other classes
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password