Method: Path#realpath

Defined in:
lib/path/file.rb

#realpath(basedir = nil) ⇒ Object

Returns the real (absolute) path of self in the actual filesystem not containing symlinks or useless dots.

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



121
122
123
# File 'lib/path/file.rb', line 121

def realpath(basedir=nil)
  Path.new(real_path_internal(true, basedir))
end