class

Spectator::MethodCall

Inherits Reference / Object

Stores information about a call to a method.

Constructors

new(method : Symbol, arguments : AbstractArguments = Arguments.none)

Creates a method call.

Source

Class methods

build(method : Symbol, *args, **kwargs)

Creates a method call from within a method. Takes the same arguments as FormalArguments.build but with the method name first.

Source
capture(method : Symbol, *args, **kwargs)

Creates a method call by splatting its arguments.

Source

Instance methods

arguments

Arguments passed to the method.

Source
inspect(io : IO) : Nil

Constructs a string containing the method name and arguments.

Source
method

Name of the method.

Source
to_s(io : IO) : Nil

Constructs a string containing the method name and arguments.

Source