ride EntryPoint
A library for overriding methods. Based on the Monkey-Patching, Overriding, and Decorating Methods in JavaScript article.
Functions
| Function | Description |
|---|---|
| ride(object, methodName, decorator) | Overrides a method named methodName on the object with the result from calling the callback function with the original method. |
Namespaces
Type Aliases
| Type Alias | Description |
|---|---|
| Decorator | A Decorator is a function that takes an original method function and returns an overridden method function. |