ARGF.lineno â integer
Instance Public methods
Returns the current line number of ARGF as a whole.
This value can be set manually with ARGF.lineno=
.
For example:
1 2 3 | ARGF .lineno #=> 0 ARGF .readline #=> "This is line 1\n" ARGF .lineno #=> 1 |
Please login to continue.