Docs - Mixins
Raddish also allows use of mixins, the basics behind mixins is the getMixableMethods method.
This method will return an object containing the mixable methods in an object like this, the keys are the method names and the values are the functions itself.
In every object extended from the
ObjectManager the mixin method is available in the
This will automatically set the target to the current object. The first parameter to this function is the object you want to be mixed.
Below I will give an example for this function: