method

to_i

v1_9_2_180 - 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