Exciting news!
rdoc-hacks got some new functionality: firstly, it is able to
RueDoc.fix data output by RDoc to add in missing method names
from C, something sorely missing from the previous version.
The second and far more exciting change is RueDoc.normalize,
which takes the data structure generated by RDoc and rearranges
it into a much more sensible one. This makes it much easier to
do arbitrary things with the data (see Examples for a plain YAML
dump of a structure). I included a description of the generated
data structure at the bottom of this message.
The frameless template underwent some minor changes, no real
new functionality. Still seems to suffer from previous problems.
Examples:
http://www.magical-cat.org/projects/ruedoc/yaml
http://www.magical-cat.org/projects/ruedoc/oughtve
http://www.magical-cat.org/projects/ruedoc/ruby-1.9
Download:
http://www.magical-cat.org/projects/ruedoc/download/ruedoc-0.1.2.tar.gz
http://www.magical-cat.org/projects/ruedoc/download/ruedoc-0.1.2.tar.bz2
Documentation:
http://www.magical-cat.org/projects/ruedoc/rdoc/
================| Normalized data format |====================
Calling RueDoc.normalize on the data generated by
RDoc (see below) generates this data structure:
聽聽聽modules: <as classes>
聽聽聽classes:
路路路
-
聽聽聽聽聽聽聽name: <name of the class>
聽聽聽聽聽聽聽parent: <parent class>
聽聽聽聽聽聽聽type: <class or module>
聽聽聽聽聽聽聽desc: <class description>
聽聽聽聽聽聽聽files:
聽聽聽聽聽聽聽聽聽-
聽聽聽聽聽聽聽聽聽聽聽path: <relative path to file where class defined>
聽聽聽聽聽聽聽constants:
聽聽聽聽聽聽聽聽聽-
聽聽聽聽聽聽聽聽聽聽聽name: <name of the constant>
聽聽聽聽聽聽聽聽聽聽聽value: <value of the constant>
聽聽聽聽聽聽聽聽聽聽聽desc: <description of the constant>
聽聽聽聽聽聽聽public_class_methods:
聽聽聽聽聽聽聽聽聽-
聽聽聽聽聽聽聽聽聽聽聽name: <method name>
聽聽聽聽聽聽聽聽聽聽聽params: <(parameters)>
聽聽聽聽聽聽聽聽聽聽聽desc: <description>
聽聽聽聽聽聽聽聽聽聽聽source: <source code>
聽聽聽聽聽聽聽聽聽聽聽example: <example of calling the method> # C methods only
聽聽聽聽聽聽聽protected_class_methods: <as above>
聽聽聽聽聽聽聽private_class_methods: <as above>
聽聽聽聽聽聽聽public_instance_methods: <as above>
聽聽聽聽聽聽聽protected_instance_methods: <as above>
聽聽聽聽聽聽聽private_instance_methods: <as above>
聽聽聽files:
聽聽聽聽聽-
聽聽聽聽聽聽聽name: <filename>
聽聽聽聽聽聽聽path: <relative path>
聽聽聽聽聽聽聽desc: <description>
聽聽聽聽聽聽聽modified: <modification timestamp>
聽聽聽聽聽聽聽requires:
聽聽聽聽聽聽聽聽聽-
聽聽聽聽聽聽聽聽聽聽聽name: <library name>
E
--
template<typename duck>
void quack(duck& d) { d.quack(); }