Sha256: 3d37d46fcd16d3663f02cceea3675b402aa4eeeb30b19b104ed800d1db8f8b5b

Contents?: true

Size: 617 Bytes

Versions: 5

Compression:

Stored size: 617 Bytes

Contents

/*!
 * Jade - nodes - Filter
 * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
 * MIT Licensed
 */

/**
 * Module dependencies.
 */

var Node = require('./node')
  , Block = require('./block');

/**
 * Initialize a `Filter` node with the given 
 * filter `name` and `block`.
 *
 * @param {String} name
 * @param {Block|Node} block
 * @api public
 */

var Filter = module.exports = function Filter(name, block, attrs) {
  this.name = name;
  this.block = block;
  this.attrs = attrs;
  this.isASTFilter = block instanceof Block;
};

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

Filter.prototype.__proto__ = Node.prototype;

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stylus-source-0.27.1 vendor/node_modules/mocha/node_modules/jade/lib/nodes/filter.js
stylus-source-0.27.0 vendor/node_modules/mocha/node_modules/jade/lib/nodes/filter.js
stylus-source-0.26.1 vendor/node_modules/mocha/node_modules/jade/lib/nodes/filter.js
stylus-source-0.26.0 vendor/node_modules/mocha/node_modules/jade/lib/nodes/filter.js
stylus-source-0.25.0 vendor/node_modules/mocha/node_modules/jade/lib/nodes/filter.js