Method: BugFix::Tempfile#open

Defined in:
lib/pik/contrib/zip/tempfile_bugfixed.rb

#openObject

Opens or reopens the file with mode “r+”.



72
73
74
75
76
77
# File 'lib/pik/contrib/zip/tempfile_bugfixed.rb', line 72

def open
  @tmpfile.close if @tmpfile
  @tmpfile = File.open(@tmpname, 'r+')
  @data[1] = @tmpfile
  __setobj__(@tmpfile)
end