On Jul 19, 2004, at 9:38, Paul Brannan wrote:

> I have a number of classes that are dynamically generated at the time 
> my
> extension is loaded.  Is there an easy way to get rdoc to generate
> documentation for these classes?  It doesn't seem to do anything by
> default.
>
> One solution I know of is to generate the .c file statically (so 
> instead
> of generating the classes using a loop in C, I generate C code using a
> loop in Ruby).  I'd rather not go this route unless I have to.
>

If you're writing in 'C', and if you know the names ofthe classes 
you're generating, you can use

/*
  * Document-class:  DynamicClass
  *
  * Documentation
  * goes here
  */


> Also, does a similar solution exist for pure ruby code?

Not at the moment.

Cheers

Dave