Wednesday, July 18, 2007

Parser for ruby-doc.org/core

After i created the first mindmap by hand, i decided that this way is to expensive. I believe, it took me hours to copy links and write method names by hand. So i wrote a quick and dirty script, which makes heavy use of hpricot and do all the basic work (parsing the methods, creating names and links, and finally putting this all together in a ready mindmap). So the only thing i have to do, is to categorize the methods. This saves me a lot of time and keeps things easy. I know, that it's written in a poor way, but it works (mostly) ;-)

View or Download the script and use it like that:
ruby [name of the saved file].rb
and follow the instructions. The mindmap should be written to the script directory.

Feel free to do whatever you want with this script ;-)

No comments: