관리-도구
편집 파일: cdesc-RewindableInput.ri
U:RDoc::NormalClass[iI"RewindableInput:EFI"Rack::RewindableInput;FI"Object;Fo:RDoc::Markup::Document:@parts[o;;[ o:RDoc::Markup::Paragraph;[I"ZClass which can make any IO object rewindable, including non-rewindable ones. It does;FI"Ethis by buffering the data into a tempfile, which is rewindable.;Fo:RDoc::Markup::BlankLine o; ;[I"Zrack.input is required to be rewindable, so if your input stream IO is non-rewindable;FI"Xby nature (e.g. a pipe or a socket) then you can wrap it in an object of this class;FI""to easily make it rewindable.;F@o; ;[I"YDon't forget to call #close when you're done. This frees up temporary resources that;FI"MRewindableInput uses, though it does *not* close the original IO object.;F: @fileI"!lib/rack/rewindable_input.rb;F;0[ [ [ [[I" class;F[[:public[[I"new;F@[:protected[ [:private[ [I" instance;F[[;[ [I" close;F@[I" each;F@[I" gets;F@[I" read;F@[I"rewind;F@[; [ [;[