Parameter
public struct Parameter : Fragment
Represents a parameter documentation in the proper format
-
Standard initializer.
Declaration
Swift
public init(name: String, documentation: String)Parameters
nameThe name of the parameter
documentationThe documentation that describes the parameter
-
The name of the parameter
Declaration
Swift
public let name: String -
The documentation that describes the parameter
Declaration
Swift
public let documentation: String
-
Renders this Parameter as a string.
The String format is as follows:
" - \(self.name): \(self.documentation)"Declaration
Swift
@inlinable public func renderContent() -> String
View on GitHub
Install in Dash
Parameter Structure Reference