method

to_i

v2_5_5 - Show latest stable - Class: ARGF
to_i()
public

Returns an integer representing the numeric file descriptor for the current file. Raises an ArgumentError if there isn’t a current file.

ARGF.fileno    #=> 3