Flowdock
method

rewind

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: ARGF
rewind() public

Positions the current file to the beginning of input, resetting ARGF.lineno to zero.

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