class

Spectator::NullStub

Inherits Spectator::TypedStub / Spectator::Stub / Spectator::StubModifiers / Reference / Object

Stub that does nothing and returns nil.

Constructors

new(method : Symbol, constraint : AbstractArguments | Nil = nil, location : Location | Nil = nil)

Creates the base of the stub.

Source

Instance methods

call(call : MethodCall) : Nil

Invokes the stubbed implementation.

Source
with_constraint(constraint : AbstractArguments | Nil)

Returns a new stub with constrained arguments.

Source