Documented the constants for the String+Formats extension in the library target.
This commit is contained in:
parent
94f060a55e
commit
9154009f6e
@ -1,9 +0,0 @@
|
|||||||
extension String {
|
|
||||||
enum Format {
|
|
||||||
enum Path {
|
|
||||||
static let data = "/data/%@"
|
|
||||||
static let docs = "/docs/%@"
|
|
||||||
static let root = "/%@"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
14
Library/Sources/Internal/Extensions/String+Formats.swift
Normal file
14
Library/Sources/Internal/Extensions/String+Formats.swift
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
extension String {
|
||||||
|
/// A namespace that defines the format patterns used to generate strings.
|
||||||
|
enum Format {
|
||||||
|
/// A namespace that defines the format patterns used to generate relative path representations.
|
||||||
|
enum Path {
|
||||||
|
/// A representation of the format pattern used to generate relative paths that starts with the `/data` string.
|
||||||
|
static let data = "/data/%@"
|
||||||
|
/// A representation of the format pattern used to generate relative paths that starts with the `/docs` string.
|
||||||
|
static let docs = "/docs/%@"
|
||||||
|
/// A representation of the format pattern used to generate relative paths that starts with the `/` string.
|
||||||
|
static let root = "/%@"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user