mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-19 01:26:08 +10:00
Add method that checks if path exists in StringPath
This commit is contained in:
@@ -19,6 +19,10 @@ module Gitlab
|
||||
@path
|
||||
end
|
||||
|
||||
def exists?
|
||||
@path == './' || @universe.include?(@path)
|
||||
end
|
||||
|
||||
def absolute?
|
||||
@path.start_with?('/')
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user