Method: FFWD.match_any_config_path

Defined in:
lib/ffwd.rb

.match_any_config_path(prefixes, path) ⇒ Object



228
229
230
231
232
233
234
235
236
237
238
# File 'lib/ffwd.rb', line 228

def self.match_any_config_path prefixes, path
  return path if File.file? path

  prefixes.each do |prefix|
    full = File.join prefix, path
    next unless File.file? full
    return full
  end

  return nil
end