Home

Daniel Berger edited this page Apr 9, 2016 · 5 revisions
Clone this wiki locally

Description

The file-temp library is an alternate way to handle tempfile generation.

Installation

gem install file-temp

Requirements

ffi 1.0.0 or later

Synopsis

require 'file/temp'

fh = File::Temp.new
fh.puts "hello"
fh.close # => Tempfile automatically deleted

fh = File::Temp.new(false)
fh.puts "world"
fh.close # => Tempfile still on your filesystem