Method: DataPaths::Finders#each_data_file
- Defined in:
- lib/data_paths/finders.rb
#each_data_file(path) {|data_file| ... } ⇒ Enumerator
Finds all occurrences of a given file path, within all data directories.
126 127 128 129 130 131 132 |
# File 'lib/data_paths/finders.rb', line 126 def each_data_file(path) return enum_for(:each_data_file,path) unless block_given? each_data_path(path) do |full_path| yield(full_path) if File.file?(full_path) end end |