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

Version Path
stylus-source-0.26.1 vendor/lib/nodes/root.js
stylus-source-0.26.0 vendor/lib/nodes/root.js
stylus-source-0.25.0 vendor/lib/nodes/root.js
stylus-source-0.24.0 vendor/lib/nodes/root.js
stylus-source-0.23.0 vendor/lib/nodes/root.js
stylus-source-0.22.6 vendor/lib/nodes/root.js
stylus-source-0.22.5 vendor/lib/nodes/root.js
stylus-source-0.22.4 vendor/lib/nodes/root.js
stylus-source-0.22.3 vendor/lib/nodes/root.js
stylus-source-0.22.2 vendor/lib/nodes/root.js
stylus-source-0.22.1 vendor/lib/nodes/root.js
stylus-source-0.22.0 vendor/lib/nodes/root.js
stylus-source-0.21.2 vendor/lib/nodes/root.js
stylus-source-0.21.1 vendor/lib/nodes/root.js
stylus-source-0.21.0 vendor/lib/nodes/root.js
stylus-source-0.20.1 vendor/lib/nodes/root.js
stylus-source-0.20.0 vendor/lib/nodes/root.js
stylus-source-0.19.8 vendor/lib/nodes/root.js
stylus-source-0.19.7 vendor/lib/nodes/root.js
stylus-source-0.19.6 vendor/lib/nodes/root.js