Andrew Walrond wrote:
> Is this functionality available somewhere? I can't find it...
> 
> TIA
> 

The Tempfile class should do what you want

(taken from the Pickaxe II)

require "tempfile"

tf = TempFile.new("afile")
tf.path                     #=> "/tmp/afile28519.0"
tf.puts("Cosi Fan Tutte")
tf.close

HTH

--
mark sparshatt