Module: FileHelper
- Included in:
- Kernel
- Defined in:
- lib/football-timezones.rb
Instance Method Summary collapse
Instance Method Details
#find_file(filename, path:) ⇒ Object
58 59 60 61 62 63 64 65 66 |
# File 'lib/football-timezones.rb', line 58 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 |