why not http://www.ruby-doc.org/stdlib-1.9.3/libdoc/tempfile/rdoc/index.html ?