Method: DataPaths::Finders#find_data_file
- Defined in:
- lib/data_paths/finders.rb
#find_data_file(path) ⇒ String?
Searches for a file at the given path, within any data directory.
60 61 62 |
# File 'lib/data_paths/finders.rb', line 60 def find_data_file(path) each_data_path(path).find { |full_path| File.file?(full_path) } end |