Sha256: 7b347e9ba43799f1b24c199141f9d544285e280f35509a0feb0713dd5eb54bc9
Contents?: true
Size: 364 Bytes
Versions: 2
Compression:
Stored size: 364 Bytes
Contents
module FileProcessor class Tempfile < ::Tempfile def initialize(basename='file-processor', *args) super(basename, *args) end def path @tmpname end def reopen(mode) close unless closed? @mode = mode @tmpfile = File.open(path, mode, @opts) @data[1] = @tmpfile __setobj__(@tmpfile) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
file_processor-0.3.1 | lib/file_processor/temp_file.rb |
file_processor-0.3.0 | lib/file_processor/temp_file.rb |