class

Mocks::Call(Args)

Inherits Mocks::AbstractCall < Reference < Object

Information about a method call and the arguments passed to it.

Constructors

new(method_name : Symbol, arguments : Args)

Creates the method call.

Source
new(method_name : Symbol)

Creates a method call with no arguments.

Source

Instance methods

arguments

Arguments passed to the method.

Source
match?(stub : Stub) : Bool

Dispatch for comparing a concrete call to a concrete stub.

Source
method_name

Name of the method.

Source
to_s(io : IO) : Nil

Produces the string representation of the method call.

Source

Macros

capture

Creates a method call containing from the current invocation.

Source