Class: PhusionPassenger::Utils::RewindableInput::Tempfile
- 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
#_close ⇒ Object
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 |