Sha256: 1d7987dc55fcffd02ba0e23097142864f6e17a2b9233f2aa629589db6cd15cf0
Contents?: true
Size: 529 Bytes
Versions: 133
Compression:
Stored size: 529 Bytes
Contents
/*! * Stylus - Visitor * Copyright(c) 2010 LearnBoost <dev@learnboost.com> * MIT Licensed */ /** * Initialize a new `Visitor` with the given `root` Node. * * @param {Node} root * @api private */ var Visitor = module.exports = function Visitor(root) { this.root = root; }; /** * Visit the given `node`. * * @param {Node|Array} node * @api public */ Visitor.prototype.visit = function(node, fn){ var method = 'visit' + node.constructor.name; if (this[method]) return this[method](node); return node; };
Version data entries
133 entries across 86 versions & 2 rubygems