rdoc question: C v Ruby

  • Thread starter Sven C. Koehler
  • Start date
S

Sven C. Koehler

Hello,

I have one class that gets defined in C and has some methods which were
easier to write in Ruby (so there's rbmodule.c and module.rb, which
extends the class with some methods) . I've documented both the methods
in C and the ones in Ruby (including a general explanation of the class).
When I run rdoc, however, it only uses the inline documentation from the
C file and not the inline documentation I wrote in the Ruby part of the
class. Is there maybe another way to organize the rdoc?

Best,

Sven
 
E

Eric Hodel

I have one class that gets defined in C and has some methods which
were
easier to write in Ruby (so there's rbmodule.c and module.rb, which
extends the class with some methods) . I've documented both the
methods
in C and the ones in Ruby (including a general explanation of the
class).
When I run rdoc, however, it only uses the inline documentation from
the
C file and not the inline documentation I wrote in the Ruby part of
the
class. Is there maybe another way to organize the rdoc?

This is correct. Which RDoc are you using? The latest is 2.4.3.
 
S

Sven C. Koehler

This is correct. Which RDoc are you using? The latest is 2.4.3.

I am using RDoc V1.0.1 - 20041108, which seems to be the version that
comes with ruby 1.8.6. Would separating the documentation into an extra
file, like modulename.rdoc, work better with older rdoc versions like
this one?

-S.
 
E

Eric Hodel

I am using RDoc V1.0.1 - 20041108, which seems to be the version that
comes with ruby 1.8.6. Would separating the documentation into an
extra
file, like modulename.rdoc, work better with older rdoc versions like
this one?

Installing the latest RDoc would be the best solution. RDoc 1.x is
unmaintained, and nearly unmaintainable.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

[ANN] RDoc 3 6
[ANN] rdoc 3.5.2 Released 0
[ANN] rdoc 3.3 Released 0
[ANN] rdoc 3.1 Released 0
[ANN] rdoc 2.5 Released 7
[ANN] rdoc 3.6 Released 4
[ANN] rdoc 3.5 Released 0
[ANN] RDoc on Github 3

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,149
Latest member
Vinay Kumar Nevatia0
Top