Flowdock
method

absolute_path

Importance_1
v1_9_1_378 - Show latest stable - 0 notes - Class: File
absolute_path(p1, p2 = v2) public

Converts a pathname to an absolute pathname. Relative paths are referenced from the current working directory of the process unless dir_string is given, in which case it will be used as the starting point. If the given pathname starts with a “~” it is NOT expanded, it is treated as a normal directory name.

File.absolute_path("~oracle/bin")       #=> "<relative_path>/~oracle/bin"
Show source
Register or log in to add new notes.