From: Tyler Rick Date: 2008-08-27T17:52:38+09:00 Subject: [ruby-core:18395] [Bug #504] Tempfile.open should return the new tempfile rather than nil 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