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: 2
Methods
- call(hook:Hook, *args:Arr) Source: stdlib.ngs:793
Runs all handlers passing all args. Parameters
args Arguments to pass to handlers Returns
Output of the combiner function applied to all handlers' results
- init(hook:Hook) Source: stdlib.ngs:775
Hook constructor. Returns
Hook
- push(hook:Hook, handler:UserDefinedMethod) Source: stdlib.ngs:783
Add unnamed handler. The hook is automatically named "pushed-N" where N is sequential integer. Returns
New hook name