Module: Dox::Util::File
- Defined in:
- lib/dox/util/file.rb
Class Method Summary collapse
Class Method Details
.file_path(path, config_root_path: Dox.config.descriptions_location) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/dox/util/file.rb', line 4 def self.file_path(path, config_root_path: Dox.config.descriptions_location) return '' unless config_root_path config_root_path.each do |root_path| full_path = ::File.join(root_path, path) next unless ::File.exist?(full_path) return full_path end nil end |