Sha256: 96b941934b9050815f9397bc6796ea8611bfa00c5886587d81da64a23841e3b9
Contents?: true
Size: 562 Bytes
Versions: 23
Compression:
Stored size: 562 Bytes
Contents
"use strict"; module.exports.mixin = function mixin(target, source) { const keys = Object.getOwnPropertyNames(source); for (let i = 0; i < keys.length; ++i) { Object.defineProperty(target, keys[i], Object.getOwnPropertyDescriptor(source, keys[i])); } }; module.exports.wrapperSymbol = Symbol("wrapper"); module.exports.implSymbol = Symbol("impl"); module.exports.wrapperForImpl = function (impl) { return impl[module.exports.wrapperSymbol]; }; module.exports.implForWrapper = function (wrapper) { return wrapper[module.exports.implSymbol]; };
Version data entries
23 entries across 23 versions & 7 rubygems