On Tue, Jan 1, 2013 at 11:14 PM, Jérôme R. <[email protected]> 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/

-- You received this message because you are subscribed to the Google Groups 
ruby-talk-google group. To post to this group, send email to 
[email protected]. To unsubscribe from this group, send email 
to [email protected]. For more options, visit this 
group at https://groups.google.com/d/forum/ruby-talk-google?hl=en

Reply via email to