Method: Rack::RewindableInput#close

Defined in:
lib/rack/rewindable_input.rb

#closeObject

Closes this RewindableInput object without closing the originally wrapped IO oject. Cleans up any temporary resources that this RewindableInput has created.

This method may be called multiple times. It does nothing on subsequent calls.



45
46
47
48
49
50
51
52
53
54
# File 'lib/rack/rewindable_input.rb', line 45

def close
  if @rewindable_io
    if @unlinked
      @rewindable_io.close
    else
      @rewindable_io.close!
    end
    @rewindable_io = nil
  end
end