Indexing script for docbook articles ;)

Today I wanted to have a index.html for a directory full of DocBook articles. Being quite lazy I simply wrote a small Ruby script for doing this since I couldn't get sed to do what I want:

Comment on this

You can use Markdown here.

Please answer the question in this field. It should help keeping spambots out ;-)