Sha256: ac13a4adf8c96f03fb19ce14f7ff4af3880fa0f3e11ab375c0c54dcae6dd7427
Contents?: true
Size: 363 Bytes
Versions: 2
Compression:
Stored size: 363 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.2.0 | lib/file_processor/temp_file.rb |
file_processor-0.1.0 | lib/file_processor/temp_file.rb |