title: What does "file.sync = true" do?
body: <p>I had a look at the docs but I can't seem to find the relevant part. Can anyone tell me what the call to <code>sync</code> is for in the following code?</p>
  
  <pre><code>fh = Tempfile.new('tmp')
  fh.sync = true 
  </code></pre>