19 lines
350 B
Swift
19 lines
350 B
Swift
/// A type that can provide a relative path representation.
|
|
protocol Pathable {
|
|
|
|
// MARK: Properties
|
|
|
|
/// A read-only relative path representation.
|
|
var path: String { get }
|
|
|
|
}
|
|
|
|
// MARK: - String+Formats
|
|
|
|
extension String {
|
|
enum Format {
|
|
static let pathDocs = "/docs/%@"
|
|
static let pathRoot = "/%@"
|
|
}
|
|
}
|