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



60
61
62
63
64
# File 'lib/rack/rewindable_input.rb', line 60

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