MethodClass
- Namespace
- Ancestors
-
-
Value
-
- Subclasses
-
- Method
-
Proxies a method for later invocation on the actual result.
Proxies a method for later invocation on the actual result. The method information is stored and used when this method is #called, which passes it along to the given actual result.
Constructor
initialize(methodSymbol, *argsObject*, &blockProc)#⚙
Proxies method, passing in args and block when #called.
Instance Methods
call(actualObject)Object#⚙
Returns the result of invoking the method with the given arguments on the actual result.
to_lookout_expectedExpected::Lookout::Actual::Method#⚙
Returns an expected value wrapper of the receiver.
to_sString#⚙
Returns a string of the form “#method(args){ … }”, depending on if any arguments or block has been given.