UNPKG

stylus

Version:

Robust, expressive, and feature-rich CSS superset

33 lines (25 loc) 516 B
/*! * Stylus - Comment * Copyright(c) 2010 LearnBoost <dev@learnboost.com> * MIT Licensed */ /** * Module dependencies. */ var Node = require('./node'); /** * Initialize a new `Comment` with the given `str`. * * @param {String} str * @param {Boolean} suppress * @api public */ var Comment = module.exports = function Comment(str, suppress){ Node.call(this); this.str = str; this.suppress = suppress; }; /** * Inherit from `Node.prototype`. */ Comment.prototype.__proto__ = Node.prototype;