I thought I would see about adding some search function to ruby-doc, and 
ended up taking Mike Neumann's WWW::Mechanize[0] for a test drive.

Sweet it be, as it took almost no time to get running code that takes 
search words, queries Google, parses the results, and creates a new page 
page.

Try it here:

http://www.ruby-doc.org/gs.rb/REXML%20pullparser
http://www.ruby-doc.org/gs.rb/Timeout
http://www.ruby-doc.org/gs.rb/testunit+assert

I had to hack Mechanize to have it grab 'p' elements, but it is dead 
easy to do.

Nice work, Herr Neumann. And a tip of the hat to folks behind Narf, 
whose  htmltools are needed for WWW::Mechanize.

James

[0] http://www.ntecs.de/blog/Blog/WWW-Mechanize.rdoc