1 | ;
|
2 |
|
3 | var 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 |
|
14 | var 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`.
|
23 | Mixin.prototype = Object.create(Attrs.prototype);
|
24 | Mixin.prototype.constructor = Mixin;
|
25 |
|
26 | Mixin.prototype.type = 'Mixin';
|