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.
151 152 153 |
# File 'lib/fakefs/pathname.rb', line 151 def realpath(basedir = nil) self.class.new(File.realpath(@path, basedir)) end |