Code coverage report for lib/nodes/filter.js

Statements: 100% (8 / 8)      Branches: 100% (0 / 0)      Functions: 100% (1 / 1)      Lines: 100% (8 / 8)      Ignored: none     

All files » lib/nodes/ » filter.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25    11                     11 34 34 34       11 11   11  
'use strict';
 
var Node = require('./node');
 
/**
 * 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;
};
 
// Inherit from `Node`.
Filter.prototype = Object.create(Node.prototype);
Filter.prototype.constructor = Filter;
 
Filter.prototype.type = 'Filter';