static public Method

Tempdir.new(*args)

There's no documentation for this item.

Source Code

# File rio/tempdir.rb, line 102
def initialize(*args)
  require 'fileutils'

  tmpname = createtmp(*args) do |tmpname|
    unless File.exist?(tmpname)
      Dir.mkdir(tmpname, 0700)
    end
  end

  super(tmpname)
  @clean_proc, = AutoRemoval.callback(tmpname, FileUtils.method(:rm_rf))
  ObjectSpace.define_finalizer(self, @clean_proc)  end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.