Skip to content
instance method

Pathname#realpath

(?::string | ::Pathname base_dir) -> ::Pathname
realpath(...)

Returns the real (absolute) pathname for self in the actual filesystem.

Does not contain symlinks or useless dots, .. and ..

All components of the pathname must exist when this method is called.