A Twitch.tv viewer reward and games system.
You can not 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
549 B

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