Method: Fast::FilesystemObject#expand
- Defined in:
- lib/fast/filesystemobject.rb
#expand(path = nil) ⇒ Object Also known as: absolute
Expands the path if it’s a relative path
21 22 23 24 25 |
# File 'lib/fast/filesystemobject.rb', line 21 def path = nil @path = normalize path if path raise Fast::PathNotSettedException, "The path was not setted in this instance" unless @path ::File. @path end |