Mocks::ArgumentsPattern(Positional, KeywordArguments)
Inherits Mocks::AbstractArgumentsPattern < Reference < Object
Arguments matched against to determine if a stub should be used or a call had expected arguments.
The Positional type parameter must be a Tuple.
The KeywordArguments type parameter must be a NamedTuple.
Constructors
new(positional : Positional, named : KeywordArguments)
Creates a pattern to match against arguments passed to a method.
Class methods
build(*args, **named) : AbstractArgumentsPattern
Creates a pattern to match against arguments written as a normal parameter list.
none
Creates an empty set of arguments to match against. Matching against this indicates no arguments were passed.
Instance methods
==(other : self)
Returns true if this reference is the same as other. Invokes same?.
===(other : Arguments(Args, Splat, DoubleSplat)) : Bool forall Args, Splat, DoubleSplat
Checks if arguments passed to a method match those specified by this pattern.
hash(hasher)
See Object#hash(hasher)