Hook type
Direct parent types
- HashLike
Base type for user-defined hash-like types. This is a workaround: it's not possible currently no inherit from the built-in Hash type. Direct subtypes: 3
Methods
- call(hook:Hook, *args:Arr) Source: stdlib.ngs:1895
Runs all handlers passing all args. Parameters
args Arguments to pass to handlers Returns
Arr. Results from all the handlers
- init(hook:Hook) Source: stdlib.ngs:1877
Hook constructor. Returns
Hook
- push(hook:Hook, handler:UserDefinedMethod) Source: stdlib.ngs:1885
Add unnamed handler. The hook is automatically named "pushed-N" where N is sequential integer. Returns
New hook name