7 lines
134 B
Ruby
7 lines
134 B
Ruby
|
|
require 'tempfile'
|
||
|
|
|
||
|
|
f = Tempfile.new('foo')
|
||
|
|
f.path # => "/tmp/foo20081226-307-10p746n-0"
|
||
|
|
f.close
|
||
|
|
f.unlink # => #<Tempfile: (closed)>
|