title: Creating a thread-safe temporary file name
body: <p>When using <code>Tempfile</code> Ruby is creating a file with a thread-safe and inter-process-safe name. I only need a file name in that way.</p>
  
  <p>I was wondering if there is a more straight forward approach way than:</p>
  
  <pre><code>t = Tempfile.new(['fleischwurst', '.png'])
  temp_path = t.path
  t.close
  t.unlink
  </code></pre>