Module: FileHelper
- Included in:
- Kernel
- Defined in:
- lib/leagues.rb
Instance Method Summary collapse
Instance Method Details
#find_file(filename, path:) ⇒ Object
46 47 48 49 50 51 52 53 54 |
# File 'lib/leagues.rb', line 46 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 |