method

fileno

v2_6_3 - Show latest stable - Class: ARGF
fileno()
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