Method DataObject():noMethod() Foundation

Handles calls to undefined methods.

Syntax
:noMethod() -> NIL
Return

Execution of an undefined method always returns NIL.

Description

The method :noMethod() is executed whenever an undefined method is called. The implementation of :noMethod() in the DataObject class always returns the value NIL.

In order to dynamically add a method to a DataObject instance, the method :defineMethod() must be used. Once a method is defined using :defineMethod(), calls to the new method no longer cause :noMethod() to be executed. Consequently, overriding :noMethod() in a derived class is not required for adding methods to DataObject instances.

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.