Class: PhusionPassenger::Utils::RewindableInput::Tempfile

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

Overview

Many Ruby 1.8’s tempfile libraries have a bug that can cause the #close method to raise an exception. Subclass it and fix it.

Instance Method Summary collapse

Instance Method Details

#_closeObject



72
73
74
75
76
# File 'lib/phusion_passenger/utils/rewindable_input.rb', line 72

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