nl_tokens: Helper / sugar method for wrap
pl_tokens: function wrapContext ( context ) { var retObj = { } , reservedRegexp = / ^(topic|beforeEach|afterEach)$ / , key , subcontext , beforeFn = context . beforeEach , afterFn = context . afterEach ; // Iterate the keys in the context for ( key in context ) { if ( context . hasOwnProperty ( key ) && ! reservedRegexp . test ( key ) ) { subcontext = context [ key ] ; // If the subcontext is a function, wrap it if ( typeof subcontext === 'function' ) { retObj [ key ] = wrap ( subcontext , beforeFn , afterFn ) ; } else { // Otherwise, copy it retObj [ key ] = subcontext ; } } } // Copy over the topic retObj . topic = context . <mask> ; // Return the copied context return retObj ; }