PHP 8.2.30
Preview: role.js Size: 406 B
//usr/lib/node_modules/npm/node_modules/genfun/lib/role.js

'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')

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
8.40 KB lrw-r--r-- 2021-03-10 14:36:39
Edit Download
2.25 KB lrw-r--r-- 2021-03-10 14:36:39
Edit Download
406 B lrw-r--r-- 2021-03-10 14:36:39
Edit Download
1.03 KB lrw-r--r-- 2021-03-10 14:36:39
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).