From: ES Date: 2005-10-25T13:41:49+09:00 Subject: Re: RDoc XML > I would like to get a convenient listing of all current Ruby > documentation included in the source. I see that RDoc supports XML > (which would be fine) and I try: > > /ruby$ rdoc --all -f xml -n ../ruby_doc.xml > > That gives me a lot of date, but it doesn't seem to include the > methods themselves. Is there any way to get them in the XML, or do I > need to build the HTML docs and parse out what I want? Not exactly what you requested, but let me offer this anyway: my rdoc-hacks can normalize RDoc output to a fairly sensible data format (see spec below) from which an example file can produce YAML output. It should be able to handle the entire ruby distribution (at least 1.9 is OK by my testing). Examples: http://www.magical-cat.org/projects/ruedoc/examples/yaml/data.yml http://www.magical-cat.org/projects/ruedoc/examples/ruby-1.9/ Documentation: http://www.magical-cat.org/projects/ruedoc/rdoc/ Get it from: http://www.magical-cat.org/projects/ruedoc/downloads/ruedoc-0.1.2.tar.gz ============================================================= Normalized data format in YAML: modules: classes: - name: parent: type: desc: files: - path: constants: - name: value: desc: public_class_methods: - name: params: <(parameters)> desc: source: example: # C methods only protected_class_methods: private_class_methods: public_instance_methods: protected_instance_methods: private_instance_methods: files: - name: path: desc: modified: requires: - name: ================================================================ > Thanks. > > James Edward Gray II E