[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Any hooks in rdoc ?

Vincent Fourmond

11/10/2006 7:56:00 PM


Hello !

I'm currently writing a "not so small anymore" project involving a
fair deal of metaprogramming, and I would have liked rdoc to reflect a
bit better the state of my classes. Is there any way to have rdoc
understand a statement like

param_accessor :size, 'size', "Size", {:type => :integer}, "The size ?"

I would want rdoc to display something close to what it would for

# The size ?
attr_accessor :size

but I don't have a clue about how to do it. I tried the --accessor
option, but it treats :size, 'size', "Size" and so on each as different
attributes, which is not acceptable in my case/

Any hint ? Thanks !

Vince

--
Vincent Fourmond, PhD student
http://vincent.fourmon...

4 Answers

Eric Hodel

11/13/2006 9:09:00 PM

0

On Nov 10, 2006, at 11:55 AM, Vincent Fourmond wrote:

>
> Hello !
>
> I'm currently writing a "not so small anymore" project involving a
> fair deal of metaprogramming, and I would have liked rdoc to reflect a
> bit better the state of my classes. Is there any way to have rdoc
> understand a statement like
>
> param_accessor :size, 'size', "Size", {:type => :integer}, "The
> size ?"
>
> I would want rdoc to display something close to what it would for
>
> # The size ?
> attr_accessor :size
>
> but I don't have a clue about how to do it. I tried the --accessor
> option, but it treats :size, 'size', "Size" and so on each as
> different
> attributes, which is not acceptable in my case/
>
> Any hint ? Thanks !

There isn't one, sorry. :(

--
Eric Hodel - drbrain@segment7.net - http://blog.se...
This implementation is HODEL-HASH-9600 compliant

http://trackmap.rob...



Vincent Fourmond

11/15/2006 8:26:00 AM

0

Eric Hodel wrote:
>> Any hint ? Thanks !
>
> There isn't one, sorry. :(

Pity. Do you think it would be possible to add such a thing without
disturbing rdoc too much ? Would anyone be interested ? I could give it
a try, then.

Cheers,

Vince


--
Vincent Fourmond, PhD student
http://vincent.fourmon...

Eric Hodel

11/15/2006 8:08:00 PM

0

On Nov 15, 2006, at 12:26 AM, Vincent Fourmond wrote:
> Eric Hodel wrote:
>>> Any hint ? Thanks !
>>
>> There isn't one, sorry. :(
>
> Pity. Do you think it would be possible to add such a thing without
> disturbing rdoc too much ? Would anyone be interested ? I could
> give it
> a try, then.

It is a frequently requested feature, go for it.

--
Eric Hodel - drbrain@segment7.net - http://blog.se...
This implementation is HODEL-HASH-9600 compliant

http://trackmap.rob...



Gregory Brown

11/15/2006 8:11:00 PM

0

On 11/15/06, Vincent Fourmond <vincent.fourmond@9online.fr> wrote:
> Eric Hodel wrote:
> >> Any hint ? Thanks !
> >
> > There isn't one, sorry. :(
>
> Pity. Do you think it would be possible to add such a thing without
> disturbing rdoc too much ? Would anyone be interested ? I could give it
> a try, then.

This would be excellent, if someone could swing it.