Top Level Namespace
Instance Method Summary collapse
-
#get_full_path(path) ⇒ Object
returns full path in case relatives paths are passed.
Instance Method Details
#get_full_path(path) ⇒ Object
returns full path in case relatives paths are passed
26 27 28 29 30 31 32 33 34 |
# File 'bin/watch_and_do', line 26 def get_full_path(path) if path == '.' path = Dir.pwd elsif !File::exists? path Dir.pwd + File::SEPARATOR + path end return path end |