Sha256: 187774882bf23bc16e533992496c3b14f988ba213a8b34c33dbf9d0962c4efea
Contents?: true
Size: 212 Bytes
Versions: 22
Compression:
Stored size: 212 Bytes
Contents
require 'tempfile' module Dandelion module Utils def temp(file, data) tmp = Tempfile.new(file.gsub('/', '.')) tmp << data tmp.flush yield(tmp.path) tmp.close end end end
Version data entries
22 entries across 22 versions & 1 rubygems