ARGF.rewind â 0
Instance Public methods
Positions the current file to the beginning of input, resetting
ARGF.lineno
to zero.
1 2 3 4 | ARGF .readline #=> "This is line one\n" ARGF .rewind #=> 0 ARGF .lineno #=> 0 ARGF .readline #=> "This is line one\n" |
Please login to continue.