Sha256: 895cf8af4f2d96b0fdcc59238fe6fa2b8b422e6c42ef7955af2f75deb6d77a1a

Contents?: true

Size: 391 Bytes

Versions: 1

Compression:

Stored size: 391 Bytes

Contents

module Dox
  module Util
    module File
      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
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dox-2.4.0 lib/dox/util/file.rb