2025-03-04 23:16:41 +01:00
|
|
|
/// A type that can provide a relative path representation.
|
2025-02-25 01:55:49 +01:00
|
|
|
protocol Pathable {
|
|
|
|
|
|
|
|
// MARK: Properties
|
|
|
|
|
2025-03-04 23:16:41 +01:00
|
|
|
/// A read-only relative path representation.
|
2025-02-25 01:55:49 +01:00
|
|
|
var path: String { get }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// MARK: - String+Formats
|
|
|
|
|
|
|
|
extension String {
|
|
|
|
enum Format {
|
|
|
|
static let pathDocs = "/docs/%@"
|
|
|
|
static let pathRoot = "/%@"
|
|
|
|
}
|
|
|
|
}
|