Sha256: 901104c13f2781a786e834e2f4c0d1258b0301ce4ce0d6cdd44eb30097db5f38
Contents?: true
Size: 648 Bytes
Versions: 29
Compression:
Stored size: 648 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); }; /** * Return "root". * * @return {String} * @api public */ Root.prototype.toString = function(){ return '[Root]'; };
Version data entries
29 entries across 29 versions & 1 rubygems