Method: FakeFS::Pathname#realpath

Defined in:
lib/fakefs/pathname.rb

#realpath(basedir = nil) ⇒ Object

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

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



288
289
290
# File 'lib/fakefs/pathname.rb', line 288

def realpath(basedir = nil)
  self.class.new(File.realpath(@path, basedir))
end