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: 4
Methods
- call(hook:Hook, *args:Arr) Source: stdlib.ngs:2369
Runs all handlers passing all args. Parameters
args Arguments to pass to handlers Returns
Hash. Results from all the handlers
- init(hook:Hook) Source: stdlib.ngs:2351
Hook constructor. Returns
Hook
- push(hook:Hook, handler:UserDefinedMethod) Source: stdlib.ngs:2359
Add unnamed handler. The hook is automatically named "pushed-N" where N is sequential integer. Returns
New hook name