= private = protected
open()
Opens or reopens the file with mode “r+”.
# File lib/tempfile.rb, line 161 def open @tmpfile.close if @tmpfile @tmpfile = File.open(@tmpname, @mode, @opts) @data[1] = @tmpfile __setobj__(@tmpfile) end