method

__dir__

Importance_1
v2_5_5 - Show latest stable - 0 notes - Class: Kernel
__dir__() public

Returns the canonicalized absolute path of the directory of the file from which this method is called. It means symlinks in the path is resolved. If __FILE__ is nil, it returns nil. The return value equals to File.dirname(File.realpath(__FILE__)).

Show source
Register or log in to add new notes.