Class: Rack::RewindableInput::Tempfile

Inherits:
Tempfile
  • Object
show all
Defined in:
lib/rack/rewindable_input.rb

Overview

Ruby’s Tempfile class has a bug. Subclass it and fix it.

Instance Method Summary collapse

Instance Method Details

#_closeObject



62
63
64
65
66
# File 'lib/rack/rewindable_input.rb', line 62

def _close
  @tmpfile.close if @tmpfile
  @data[1] = nil if @data
  @tmpfile = nil
end