From: Robert Klemme Date: 2013-01-04T06:46:25+09:00 Subject: Re: Keep temporary files On Tue, Jan 1, 2013 at 11:14 PM, Jérôme R. wrote: > In a project I am working on, Tempfile objects are used. Fine, but I > would like to add an option "keep temp file", in order to facilitate > debug in case of error. > > It seems that Tempfile object doesn't provide any way to do that. Would > you think it could a possible enhancement? You just need to create a class with the same interface as Tempfile and use that interchangeably with Tempfile - depending on whether you want to keep or get rid of temp files. Or you add that option to your version of Tempfile if you need to decide this while you go. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/