Skip to content
This repository

Description

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

Installation

gem install file-temp

Requirements

ffi 0.5.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
Something went wrong with that request. Please try again.