You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
521 B
JavaScript
27 lines
521 B
JavaScript
'use strict';
|
|
|
|
var Attrs = require('./attrs');
|
|
|
|
/**
|
|
* Initialize a new `Mixin` with `name` and `block`.
|
|
*
|
|
* @param {String} name
|
|
* @param {String} args
|
|
* @param {Block} block
|
|
* @api public
|
|
*/
|
|
|
|
var Mixin = module.exports = function Mixin(name, args, block, call){
|
|
Attrs.call(this);
|
|
this.name = name;
|
|
this.args = args;
|
|
this.block = block;
|
|
this.call = call;
|
|
};
|
|
|
|
// Inherit from `Attrs`.
|
|
Mixin.prototype = Object.create(Attrs.prototype);
|
|
Mixin.prototype.constructor = Mixin;
|
|
|
|
Mixin.prototype.type = 'Mixin';
|