abstract class Spectator::Mocks::MethodStub

Direct Known Subclasses

Defined in:

spectator/mocks/method_stub.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

should(matcher) should, should_eventually(matcher) should_eventually, should_never(matcher) should_never, should_not(matcher) should_not

Constructor Detail

def self.new(name : Symbol, source : Spectator::Source) #

[View source]

Instance Method Detail

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

[View source]
def call!(args : GenericArguments(T, NT), &original : -> RT) : RT forall T, NT, RT #

[View source]
def callable?(call : MethodCall) : Bool #

[View source]
def name : Symbol #

[View source]
def source : Source #

[View source]
def to_s(io) #

[View source]