Class: Dir::Tmpname

Inherits:
Object
  • Object
show all
Defined in:
lib/iron_worker_ng/compat.rb

Class Method Summary collapse

Class Method Details

.make_tmpname(x, y) ⇒ Object



7
8
9
10
11
12
# File 'lib/iron_worker_ng/compat.rb', line 7

def self.make_tmpname(x, y)
  n = ::Dir.mktmpdir(x + y)
	FileUtils.rm_rf(n)

	n.sub(::Dir.tmpdir, '')
end