method

lineno

Importance_1
v1_9_3_392 - Show latest stable - 0 notes - Class: ARGF
lineno() public

Returns the current line number of ARGF as a whole. This value can be set manually with ARGF.lineno=.

For example:

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