Method: FileSet#find
- Defined in:
- lib/fileset.rb
#find(path) ⇒ Object
159 160 161 162 163 164 165 166 |
# File 'lib/fileset.rb', line 159 def find(path) path = unpath(path) @search_paths.reverse.map do |sp| ::File::join(sp + path) end.find do |path| ::File::exists?(path) end end |