Comment on Underscore.phpparentComments−fooyc15yHow can I add a mixin to the __ class without editing it ?−bwh215yJust copying this from the docs, but you can pass an array of functions to mixin: __::mixin(array( 'capitalize'=> function($string) { return ucwords($string); } )); __::capitalize('moe'); // 'Moe'
Comments
How can I add a mixin to the __ class without editing it ?
Just copying this from the docs, but you can pass an array of functions to mixin: