CHGenerator/Sources/Generator/Extensions/Int+Extensions.swift

14 lines
229 B
Swift
Raw Normal View History

import Foundation
extension Int: StringProperty {
static var castFailureReason: String {
"The string was not a valid integer"
}
}
extension Int: DefaultValueProvider {
static var defaultValue: Int { 0 }
}