Issue #504 has been updated by Tyler Rick.


Currently, if you want to be able to do anything with the tempfile after the block ends, you have to do something like this, which isn't very elegant:

  file = nil
   Tempfile.open("foo") do |f|
    file = nil
    f.print("foo\n")
  end
  p file.path

----------------------------------------
http://redmine.ruby-lang.org/issues/show/504

----------------------------------------
http://redmine.ruby-lang.org