method

fileno

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

Returns an integer representing the numeric file descriptor for ios.

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