Mocks::Arguments(Args, Splat, DoubleSplat)
Inherits Mocks::AbstractArguments < Reference < Object
Stores arguments passed by a method call.
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
Creates arguments as they would be available when passed to a method.
Class methods
Instance methods
Returns true if this reference is the same as other. Invokes same?.
Retrieves a positional, non-splat argument or keyword argument by the specified name.
See Object#hash(hasher)
Retrieves all positional arguments, including the spat arguments, in the order they were passed.
Tuple containing the extra arguments captured by a splat. Will be nil if there was no splat argument.
Name of the splat argument, if one was provided. Will be nil if there was no splat argument.