method

fileno

v1_8_6_287 - Show latest stable - Class: IO
fileno()
public

Returns an integer representing the numeric file descriptor for ios.

   $stdin.fileno    #=> 0
   $stdout.fileno   #=> 1