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.

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

Paul