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

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

Overview

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

Instance Method Summary collapse

Instance Method Details

#_closeObject



69
70
71
72
73
# File 'lib/phusion_passenger/utils/rewindable_input.rb', line 69

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