Module: FastIgnore::PathExpander

Defined in:
lib/fast_ignore/path_expander.rb

Class Method Summary collapse

Class Method Details

.expand_path(path, dir) ⇒ Object



5
6
7
8
9
# File 'lib/fast_ignore/path_expander.rb', line 5

def self.expand_path(path, dir)
  ::File.expand_path(path, dir)
rescue ::ArgumentError
  ::File.expand_path("./#{path}", dir)
end