Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

class method

Pathname.mktmpdir

mktmpdir() { |dir| ... }

Creates a tmp directory and wraps the returned path in a Pathname object.

See Dir.mktmpdir

See also .glob .new .getwd .pwd also in 4.1 · 4.0