class Spectator::Mocks::MultiValueMethodStub(ReturnType)

Defined in:

spectator/mocks/multi_value_method_stub.cr

Constructors

Instance Method Summary

Instance methods inherited from class Spectator::Mocks::GenericMethodStub(ReturnType)

arguments : Arguments arguments, arguments? : Arguments | Nil arguments?, callable?(call : MethodCall) : Bool callable?, to_s(io) to_s

Constructor methods inherited from class Spectator::Mocks::GenericMethodStub(ReturnType)

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

Instance methods inherited from class Spectator::Mocks::MethodStub

call(args : GenericArguments(T, NT), & : -> RT) forall T, NT, RT call, call!(args : GenericArguments(T, NT), & : -> RT) : RT forall T, NT, RT call!, callable?(call : MethodCall) : Bool callable?, location : Location location, name : Symbol name, to_s(io) to_s

Constructor methods inherited from class Spectator::Mocks::MethodStub

new(name : Symbol, location : Spectator::Location) new

Instance methods inherited from class Object

should(matcher, message = nil) should, should_eventually(matcher, message = nil) should_eventually, should_never(matcher, message = nil) should_never, should_not(matcher, message = nil) should_not

Constructor Detail

def self.new(name, location, values : ReturnType, args = nil) #

[View source]

Instance Method Detail

def call(args : GenericArguments(T, NT), & : -> RT) forall T, NT, RT #

[View source]