PATH:
opt
/
alt
/
ruby19
/
lib64
/
ruby
/
gems
/
1.9.1
/
doc
/
rack-1.6.4
/
ri
/
Rack
/
RewindableInput
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@[; [ [;[
[-] close-i.ri
[edit]
[-] cdesc-RewindableInput.ri
[edit]
[+]
Tempfile
[-] gets-i.ri
[edit]
[-] read-i.ri
[edit]
[-] rewind-i.ri
[edit]
[-] each-i.ri
[edit]
[+]
..
[-] new-c.ri
[edit]