class Spectator::MethodCall
- Spectator::MethodCall
- Reference
- Object
Overview
Stores information about a call to a method.
Defined in:
spectator/mocks/method_call.crConstructors
-
.new(method : Symbol, arguments : AbstractArguments = Arguments.none)
Creates a method call.
Class Method Summary
-
.capture(method : Symbol, *args, **kwargs)
Creates a method call by splatting its arguments.
Instance Method Summary
-
#arguments : AbstractArguments
Arguments passed to the method.
-
#method : Symbol
Name of the method.
-
#to_s(io : IO) : Nil
Constructs a string containing the method name and arguments.
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
Creates a method call.
Class Method Detail
def self.capture(method : Symbol, *args, **kwargs)
#
Creates a method call by splatting its arguments.