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.

20 lines
378 B

  1. 'use strict';
  2. var Node = require('./node');
  3. /**
  4. * Initialize a `Literal` node with the given `str.
  5. *
  6. * @param {String} str
  7. * @api public
  8. */
  9. var Literal = module.exports = function Literal(str) {
  10. this.str = str;
  11. };
  12. // Inherit from `Node`.
  13. Literal.prototype = Object.create(Node.prototype);
  14. Literal.prototype.constructor = Literal;
  15. Literal.prototype.type = 'Literal';