• File: role.js
  • Full Path: /home6/laduliya/test.mydthpay.com/node_modules/npm/node_modules/genfun/lib/role.js
  • Date Modified: 10/26/1985 11:45 AM
  • File size: 406 bytes
  • MIME-type: text/plain
  • Charset: utf-8
'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')