Project

General

Profile

« Previous | Next » 

Revision 08346e72

Added by schneems (Richard Schneeman) 9 months ago

Introduce Pathname.mktmpdir

When I want to create a tmpdir I often want to manipulate it as a pathname. By introducing Pathname.mktmpdir I can get this behavior.

Currently I must:

Dir.mktmpdir do |dir|
  dir = Pathname(dir)
  # ... code
end

I would like to be able to instead:

Pathname.mktmpdir do |dir|
  # ... code
end