[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

RDoc XML: How to include methods data?

Graham Wideman

9/6/2006 7:43:00 AM

RDoc experts:

I used RDoc to generate XML output for a set of ruby classes, but I can't
get RDoc output to include the methods information.

Test cases:

This command line:
rdoc -a --fmt xml -T xml.rb -n src_184.xml \ruby\src\ruby-1.8.4_2006-04-14
....produces xml that contains classes and files but no methods.

This almost identical command line:
rdoc -a --fmt html -n src_184.htm \ruby\src\ruby-1.8.4_2006-04-14
.... produces html, *with* method data included.

In addition, I see that the template (xml.rb) includes sections like:

--------------------------
IF:method_list
<method-list>
START:method_list
IF:methods
START:methods
<method name="%name%" type="%type%" category="%category%"
id="%aref%">
<parameters>%params%</parameters>
[...]
--------------------------

.... like it was clearly *intended* to output methods data.

Anyone know what's up with this?

FWIW, this is using 1.8.4 on Windows. (Probably obvious from the above!)

Thanks,

Graham

--
---------------------------------------------------
Graham Wideman
Microsoft Visio MVP
---------------------------------------------------
Book/Tools:
Visio 2003 Developer's Survival Pack
Resources for programmable diagramming at:
http://www.diagram...