Top Level Namespace

Instance Method Summary collapse

Instance Method Details

#get_full_path(path) ⇒ Object

returns full path in case relatives paths are passed



21
22
23
24
25
26
27
28
29
# File 'bin/watch_and_do', line 21

def get_full_path(path)
  if path == '.'
    path = Dir.pwd
  elsif !File::exists? path
    Dir.pwd + File::SEPARATOR + path
  end

  return path
end