method

fileno

Importance_1
v2_6_3 - Show latest stable - 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.