Sha256: 44bffadfb352f69e565d1ea777d31ca8a9e0c435262d9b10de5ed302ef90b7fb
Contents?: true
Size: 805 Bytes
Versions: 71
Compression:
Stored size: 805 Bytes
Contents
/*! * Stylus - Root * Copyright(c) 2010 LearnBoost <dev@learnboost.com> * MIT Licensed */ /** * Module dependencies. */ var Node = require('./node'); /** * Initialize a new `Root` node. * * @api public */ var Root = module.exports = function Root(){ this.nodes = []; }; /** * Inherit from `Node.prototype`. */ Root.prototype.__proto__ = Node.prototype; /** * Push a `node` to this block. * * @param {Node} node * @api public */ Root.prototype.push = function(node){ this.nodes.push(node); }; /** * Unshift a `node` to this block. * * @param {Node} node * @api public */ Root.prototype.unshift = function(node){ this.nodes.unshift(node); }; /** * Return "root". * * @return {String} * @api public */ Root.prototype.toString = function(){ return '[Root]'; };
Version data entries
71 entries across 57 versions & 2 rubygems