RbMethodArgs

Swift
public struct RbMethodArgs

The various types of argument passed to a Ruby method implemented in Swift.

Available via RbMethod.args when the method is invoked.


Topics

var mandatory: [RbObject]

The mandatory positional arguments to the method, comprising the leading mandatory arguments followed by the trailing mandatory arguments.

Declaration
Swift
public let mandatory: [RbObject]

var optional: [RbObject]

The optional positional arguments to the method. If caller did not provide a value for any of these then their values are created from the RbMethodArgsSpec.

Declaration
Swift
public let optional: [RbObject]

var splatted: [RbObject]

The splatted (variable length) arguments to the method.

Declaration
Swift
public let splatted: [RbObject]

var keyword: [String : RbObject]

The keyword arguments to the method. If caller omitted any keyword arguments with default values then they are created from the RbMethodArgsSpec.

Declaration
Swift
public let keyword: [String: RbObject]