Flowdock
rewind() public

Positions ios to the beginning of input, resetting lineno to zero.

   f = File.new("testfile")
   f.readline   #=> "This is line one\n"
   f.rewind     #=> 0
   f.lineno     #=> 0
   f.readline   #=> "This is line one\n"
Show source
Register or log in to add new notes.