Class: File
- Inherits:
-
Object
- Object
- File
- Defined in:
- lib/spread2rdf/extensions/file.rb
Class Method Summary collapse
Class Method Details
.in_path(filename, search_path = Spread2RDF::SEARCH_PATH) ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/spread2rdf/extensions/file.rb', line 2 def self.in_path(filename, search_path = Spread2RDF::SEARCH_PATH) return filename if File.exist? filename search_path.each do |path| file = File.join(path, filename) return file if File.exist? file end nil end |