Module: RD::SearchFile
- Included in:
- OutputFormatVisitor, RBLFile
- Defined in:
- lib/rd/search-file.rb
Instance Method Summary collapse
Instance Method Details
#search_file(base, include_path, suffixes) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/rd/search-file.rb', line 4 def search_file(base, include_path, suffixes) include_path.each do |dir| suffixes.each do |suffix| file = dir + "/" + base + "." + suffix return file if File.exist? file end end nil end |