[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

RDOC: several related modules in several C files

Victor 'Zverok' Shepelev

3/6/2007 4:40:00 PM

Hi all!

I have a pretty large extension I want to document with RDoc.

The problem is, I have several files:

htmr_main.cpp:
...
rb_mHtmr = rb_define_module("Htmr");
...

htmr_constants.cpp:
==================
...
rb_mHtmrConstants = rb_define_module_under(rb_mHtmr, "Constants");
...

The problem with such organization: RDoc says "Enclosing class/module
'rb_mHtmr' for module Constants not known".

I can:
1. move the line "rb_mHtmr = ..." to htmr_constants.cpp, but rb_mHtmr is
used not only from this file.
2. move the line "rb_mHtmrConstants = ..." to htmr_main.cpp, but in this
case all othre contents of htmr_constants.cpp is ignored by Rdoc.
3. join all files of the extension into one huge file, but it will be ugly
:(

Was I miss something?

Thanks.

V.


1 Answer

???? ??????

3/16/2007 7:10:00 AM

0


> The problem with such organization: RDoc says "Enclosing class/module
> 'rb_mHtmr' for module Constants not known".

I've done the following with my extensions:
while creating documentation, I've concatenated all data in one file and
rdoc is parsing one file.

--
Posted via http://www.ruby-....