Ruby implementation of document generation from QTP source.