Method Abstract():noMethod() Foundation

Handles calls to undefined methods

Syntax
:noMethod( cMessage, [<xValue>,...] ) --> xReturn
Parameters
<cMessage>
The message send to the object.
<xValue>
The parameters passed by the callee to the undefined method.
Return

The return value will be interpreted as the return value of the called undefined method.

Description

If an undefined method is called, a runtime error is raised. However, when :noMethod() is declared in the class, the runtime error will not occur. Instead, program execution is directed to this method. The parameter <cMessage> contains the name of the undefined method, followed by the parameters the callee has passed to the method call.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.