Is there any way to make a Ruby temporary file permanent?
Not really. For the question itself, see this: ObjectSpace.undefine_finalizer(tmpfile) The Tempfile library uses Ruby ObjectSpace finalizers to automatically delete itself on garbage collection. By using the above line you can remove the Tempfile’s ability to delete itself if you don’t delete it. So, for example: $ irb 2.0.0p0 :001 > require “tempfile” => true 2.0.0p0 … Read more