Sha256: 659983d15c777f2ffb04522c4475462a126de04dddb77267fc75d8a442ddc132

Contents?: true

Size: 784 Bytes

Versions: 76

Compression:

Stored size: 784 Bytes

Contents

/*!
 * Stylus - Extend
 * Copyright(c) 2010 LearnBoost <dev@learnboost.com>
 * MIT Licensed
 */

/**
 * Module dependencies.
 */

var Node = require('./node');

/**
 * Initialize a new `Extend` with the given `selector`.
 *
 * @param {Selector} selector
 * @api public
 */

var Extend = module.exports = function Extend(selector){
  Node.call(this);
  this.selector = selector;
};

/**
 * Inherit from `Node.prototype`.
 */

Extend.prototype.__proto__ = Node.prototype;

/**
 * Return a clone of this node.
 * 
 * @return {Node}
 * @api public
 */

Extend.prototype.clone = function(){
  return new Extend(this.selector);
};

/**
 * Return `@extend selector`.
 *
 * @return {String}
 * @api public
 */

Extend.prototype.toString = function(){
  return '@extend ' + this.selector;
};

Version data entries

76 entries across 62 versions & 2 rubygems

Version Path
ela-4.1.6 node_modules/codo/node_modules/stylus/lib/nodes/extend.js
ela-4.1.6 node_modules/poised/node_modules/nib/node_modules/stylus/lib/nodes/extend.js
ela-4.1.5 node_modules/codo/node_modules/stylus/lib/nodes/extend.js
ela-4.1.5 node_modules/poised/node_modules/nib/node_modules/stylus/lib/nodes/extend.js
ela-4.1.4 node_modules/codo/node_modules/stylus/lib/nodes/extend.js
ela-4.1.4 node_modules/poised/node_modules/nib/node_modules/stylus/lib/nodes/extend.js
ela-4.1.3 node_modules/codo/node_modules/stylus/lib/nodes/extend.js
ela-4.1.3 node_modules/poised/node_modules/nib/node_modules/stylus/lib/nodes/extend.js
ela-4.1.2 node_modules/poised/node_modules/nib/node_modules/stylus/lib/nodes/extend.js
ela-4.1.2 node_modules/codo/node_modules/stylus/lib/nodes/extend.js
ela-4.1.1 node_modules/codo/node_modules/stylus/lib/nodes/extend.js
ela-4.1.1 node_modules/poised/node_modules/nib/node_modules/stylus/lib/nodes/extend.js
ela-4.1.0 node_modules/poised/node_modules/nib/node_modules/stylus/lib/nodes/extend.js
ela-4.1.0 node_modules/codo/node_modules/stylus/lib/nodes/extend.js
ela-4.0.0 node_modules/codo/node_modules/stylus/lib/nodes/extend.js
ela-3.4.3 node_modules/codo/node_modules/stylus/lib/nodes/extend.js
ela-3.4.2 node_modules/codo/node_modules/stylus/lib/nodes/extend.js
ela-3.4.0 node_modules/codo/node_modules/stylus/lib/nodes/extend.js
ela-3.3.1 node_modules/codo/node_modules/stylus/lib/nodes/extend.js
ela-3.3.0 node_modules/codo/node_modules/stylus/lib/nodes/extend.js