Arguments used in a method call.
Can also be used to match arguments.
Args must be a Tuple representing the standard arguments.
KWArgs must be a NamedTuple type representing extra keyword arguments.
Constructors
new(args : Args, kwargs : KWArgs)
Creates arguments used in a method call.
SourceClass methods
any
Returns unconstrained arguments.
Sourcecapture(*args, **kwargs)
Friendlier constructor for capturing arguments.
Sourcenone
Instance of empty arguments.
SourceInstance methods
==(other : AbstractArguments)
Checks if this set of arguments and another are equal.
Source===(other : Arguments)
Checks if another set of arguments matches this set of arguments.
Source[](index : Int)
Returns the positional argument at the specified index.
Source[](arg : Symbol)
Returns the specified named argument.
Sourcenamed
Returns all named positional and keyword arguments as a named tuple.
Sourcepositional
Returns all arguments and splatted arguments as a tuple.
Sourceto_s(io : IO) : Nil
Constructs a string representation of the arguments.
Source