UNPKG

cocktail

Version:

CocktailJS is a small library to explore traits, talents, inheritance and annotations concepts in nodejs - Shake your objects and classes with Cocktail!

38 lines (27 loc) 677 B
/* * * Copyright (c) 2013 - 2016 Maximiliano Fierro * Licensed under the MIT license. */ 'use strict'; var sequence = require('../sequence'); function Exports () {} Exports.prototype = { retain : false, priority : sequence.EXPORTS, name : '@extends', _parameter: undefined, setParameter: function (value) { this._parameter = value; }, getParameter: function () { return this._parameter; }, process: function (subject /*, proto*/) { var value = this.getParameter(); if (value && typeof value === 'object') { value.exports = subject; } } }; module.exports = Exports;