Arg - XcodeExtKit/XcodeExtBase GitHub Wiki

Arg

"cat:​ Cat"

public struct Arg: SwiftT

Inheritance

SwiftT

Initializers

init(name:_:)

str:​ Str?

init(name: Str, _ type: TypeName)

init(name:type:optional:_static:)

str:​ Str?

init(name: Str, type: Str, optional: Bool = false, _static: Bool = false)

Properties

name

"cat:​ Cat" - cat

var name: Str

type

"cat:​ Cat" - Cat

var type: TypeName

optional

var optional: Bool

typeStr

var typeStr: Str

argStr

"cat:​ Cat"

var argStr: Str

selfInitStr

"cat = Cat"

var selfInitStr: Str

Methods

protocolStr(withSetter:usesTabs:tabIndent:)

used by protocol - to add "var property name:​ Type {get set}"

func protocolStr(withSetter: Bool = false, usesTabs: Bool = false, tabIndent: Int = 4) -> Str