method

pos

v2_6_3 - Show latest stable - Class: ARGF
pos()
public

Returns the current offset (in bytes) of the current file in ARGF.

ARGF.pos    #=> 0
ARGF.gets   #=> "This is line one\n"
ARGF.pos    #=> 17