apiref
ride@2.0.1

ride  EntryPoint

A library for overriding methods. Based on the Monkey-Patching, Overriding, and Decorating Methods in JavaScript article.

Functions

FunctionDescription
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

NamespaceDescription
rideDecorators that can be used with the ride() function.

Type Aliases

Type AliasDescription
DecoratorA Decorator is a function that takes an original method function and returns an overridden method function.