Spectator::Stub
Inherits Spectator::StubModifiers / Reference / Object
Untyped response to a method call (message).
Constructors
new(method : Symbol, constraint : AbstractArguments | Nil = nil, location : Location | Nil = nil)
Creates the base of the stub.
Instance methods
constraint
Arguments the method must have been called with to provide this response. Is nil when there's no constraint - only the method name must match.