Sha256: 0ed02a30d113babf6b43ef9f445bad240e30f89b57409f2321f361599a48da06
Contents?: true
Size: 254 Bytes
Versions: 1
Compression:
Stored size: 254 Bytes
Contents
module Entangler module Helper def self.with_temp_file(name: 'tmp_file', contents: nil) require 'tempfile' t = Tempfile.new(name) t.puts(contents) unless contents.nil? t.close yield t t.unlink end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
entangler-1.1.1 | lib/entangler/executor/helpers.rb |