class

Spectator::Mocks::NilMethodStub

Inherits Spectator::Mocks::GenericMethodStub < Spectator::Mocks::MethodStub < Reference < Object

Constructors

new(name, source, args : Arguments | Nil = nil)
Source

Instance methods

and_call_original
Source
and_raise(exception_type : Exception.class)
Source
and_raise(exception : Exception)
Source
and_raise(message : String)
Source
and_raise(exception_type : Exception.class, *args) forall T
Source
and_return(value)
Source
and_return
Source
and_return(*values)
Source
call(_args : GenericArguments(T, NT), &_original : -> RT) forall T, NT, RT
Source
with(*args : *T, **opts : **NT) forall T, NT
Source