Spectator::FormalArguments(Args, Splat, DoubleSplat)
Inherits Spectator::AbstractArguments / Reference / Object
Arguments passed into a method.
Args must be a NamedTuple type representing the standard arguments.
Splat must be a Tuple type representing the extra positional arguments.
DoubleSplat must be a NamedTuple type representing extra keyword arguments.
Constructors
new(args : Args, splat_name : Symbol | Nil, splat : Splat, kwargs : DoubleSplat)
Creates arguments used in a method call.
Class methods
build(args : NamedTuple, splat_name : Symbol, splat : Tuple, kwargs = NamedTuple.new)
Captures arguments passed to a call.
Instance methods
===(other : FormalArguments)
Checks if another set of arguments matches this set of arguments.