Method: DataPaths::Finders#load_yaml_files
- Defined in:
- lib/data_paths/finders.rb
#load_yaml_files(path) ⇒ Array
Finds all occurrences of a given file path, within all data directories.
146 147 148 |
# File 'lib/data_paths/finders.rb', line 146 def load_yaml_files(path) each_data_file(path).map { |file| YAML.load_file(file) } end |