# Any hooks in rdoc?

**URL:** <https://www.ruby-forum.com/t/any-hooks-in-rdoc/75547>\
**Category:** Ruby\
**Created:** [November 10, 2006, 8:57pm UTC](https://www.ruby-forum.com/t/any-hooks-in-rdoc/75547 "2006-11-10T20:57:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnuvince](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/82dd89/32.png) [@gnuvince](https://www.ruby-forum.com/u/gnuvince)\
**Post date:** [November 10, 2006, 8:57pm UTC](https://www.ruby-forum.com/t/any-hooks-in-rdoc/75547/1 "2006-11-10T20:57:24Z")

</div>

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
```

---

<div class="post-metadata">

**Author:** ![gnuvince](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/82dd89/32.png) [@gnuvince](https://www.ruby-forum.com/u/gnuvince)\
**Post date:** [November 13, 2006, 10:10pm UTC](https://www.ruby-forum.com/t/any-hooks-in-rdoc/75547/2 "2006-11-13T22:10:39Z")

</div>

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

> Any hint ? Thanks !  
> There isn’t one, sorry. ☹

–  
Eric H. - removed\_email\_address@domain.invalid - [http://blog.segment7.net](http://blog.segment7.net)  
This implementation is HODEL-HASH-9600 compliant

[http://trackmap.robotcoop.com](http://trackmap.robotcoop.com)

---

<div class="post-metadata">

**Author:** ![gnuvince](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/82dd89/32.png) [@gnuvince](https://www.ruby-forum.com/u/gnuvince)\
**Post date:** [November 15, 2006, 9:27am UTC](https://www.ruby-forum.com/t/any-hooks-in-rdoc/75547/3 "2006-11-15T09:27:12Z")

</div>

Eric H. 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
```

---

<div class="post-metadata">

**Author:** ![gnuvince](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/82dd89/32.png) [@gnuvince](https://www.ruby-forum.com/u/gnuvince)\
**Post date:** [November 15, 2006, 9:09pm UTC](https://www.ruby-forum.com/t/any-hooks-in-rdoc/75547/4 "2006-11-15T21:09:36Z")

</div>

On Nov 15, 2006, at 12:26 AM, Vincent F. wrote:

> Eric H. 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 H. - removed\_email\_address@domain.invalid - [http://blog.segment7.net](http://blog.segment7.net)  
This implementation is HODEL-HASH-9600 compliant

[http://trackmap.robotcoop.com](http://trackmap.robotcoop.com)

---

<div class="post-metadata">

**Author:** ![gnuvince](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/82dd89/32.png) [@gnuvince](https://www.ruby-forum.com/u/gnuvince)\
**Post date:** [November 15, 2006, 9:11pm UTC](https://www.ruby-forum.com/t/any-hooks-in-rdoc/75547/5 "2006-11-15T21:11:38Z")

</div>

On 11/15/06, Vincent F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Eric H. 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.
