class Spectator::MethodCall


Stores information about a call to a method.

Defined in:



Class Method Summary

Instance Method Summary

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 : Symbol, arguments : AbstractArguments = Arguments.none) #

Creates a method call.

[View source]

Class Method Detail

def self.capture(method : Symbol, *args, **kwargs) #

Creates a method call by splatting its arguments.

[View source]

Instance Method Detail

def arguments : AbstractArguments #

Arguments passed to the method.

[View source]
def method : Symbol #

Name of the method.

[View source]
def to_s(io : IO) : Nil #

Constructs a string containing the method name and arguments.

[View source]