'use strict'
/*
* Role
*
* A Role encapsulates a particular object's 'role' in a method's
* dispatch. They are added directly to the selector for a method, and thus
* do not prevent the objects a method was defined on from being garbage
* collected.
*/
module.exports = Role
function Role (method, position) {
this.method = method
this.position = position
}
Role.roleKeyName = Symbol('roles')
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| genfun.js | File | 8.4 KB | 0644 |
|
| method.js | File | 2.25 KB | 0644 |
|
| role.js | File | 406 B | 0644 |
|
| util.js | File | 1.03 KB | 0644 |
|