UNPKG

521 BJavaScriptView Raw
1'use strict';
2
3var Attrs = require('./attrs');
4
5/**
6 * Initialize a new `Mixin` with `name` and `block`.
7 *
8 * @param {String} name
9 * @param {String} args
10 * @param {Block} block
11 * @api public
12 */
13
14var Mixin = module.exports = function Mixin(name, args, block, call){
15 Attrs.call(this);
16 this.name = name;
17 this.args = args;
18 this.block = block;
19 this.call = call;
20};
21
22// Inherit from `Attrs`.
23Mixin.prototype = Object.create(Attrs.prototype);
24Mixin.prototype.constructor = Mixin;
25
26Mixin.prototype.type = 'Mixin';