method

fileno

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: Dir
fileno() public

Returns the file descriptor used in dir.

d = Dir.new("..")
d.fileno   #=> 8

This method uses dirfd() function defined by POSIX 2008. NotImplementedError is raised on other platforms, such as Windows, which doesn’t provide the function.

Show source
Register or log in to add new notes.