Hooks

    • is invoked when a subclass is defined. @type is the inheriting type.
    • extended is invoked when a module is extended. @type is the extending type.
    • method_added is invoked when a new method is defined in the current scope.

    Example of inherited:

    Example of method_added:

    finished is called once a type has been completely defined - this includes extensions on that class. Consider the following program: