Skip to content
instance method

ARGF#to_i

ARGF.to_i → integer

Alias of #fileno

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

Example
ARGF.fileno    #=> 3
See also #fileno #to_a #to_io #tell also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0