From: Joel VanderWerf Date: 2003-05-27T15:02:26+09:00 Subject: Re: extending rdoc for custom accessors Dave Thomas wrote: > Joel VanderWerf wrote: > >> >> My code has some things that work a bit like "attr_reader" et al, but >> of course rdoc doesn't know about them. Is there an easy way to extend >> rdoc to handle such things? > > > That depends on what you'd expect in terms of the resulting output. > Making the parser pluggable is pretty easy: you could write an extension > that handled stuff that matched a regexp you provided, and I'd call you > when that regexp hit in the right context. > > However, unless you were satisfied with one of the existing output > fields, you'd also need to extend the output formatters to add new > sections to the generated HTML/XML/etc. This might be messier. > > So, so summarize: if you want your accessors to appear in the standard > accessors section, it's easy. otherwise it's harder. Actually, the caller sees the accessors just like any other accessors, so the easy approach will work for me. Is there anything I can do?