19 lines
350 B
Swift
Raw Normal View History

/// 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 = "/%@"
}
}