Module: FileHelper
- Included in:
- Kernel
- Defined in:
- lib/leagues.rb
Instance Method Summary collapse
Instance Method Details
#find_file(filename, path:) ⇒ Object
39 40 41 42 43 44 45 46 47 |
# File 'lib/leagues.rb', line 39 def find_file( filename, path: ) path.each do |src_dir| path = "#{src_dir}/#{filename}" return path if File.exist?( path ) end ## fix - raise file not found error!!! nil ## not found - raise filenot found error - why? why not? end |