Sha256: 79cc44949dec69bde972023ca33c33834315aa26d31a9e215ee327fe6b107fd5
Contents?: true
Size: 880 Bytes
Versions: 64
Compression:
Stored size: 880 Bytes
Contents
/*! * Stylus - Call * Copyright(c) 2010 LearnBoost <dev@learnboost.com> * MIT Licensed */ /** * Module dependencies. */ var Node = require('./node'); /** * Initialize a new `Call` with `name` and `args`. * * @param {String} name * @param {Expression} args * @api public */ var Call = module.exports = function Call(name, args){ Node.call(this); this.name = name; this.args = args; }; /** * Inherit from `Node.prototype`. */ Call.prototype.__proto__ = Node.prototype; /** * Return a clone of this node. * * @return {Node} * @api public */ Call.prototype.clone = function(){ var clone = new Call(this.name, this.args.clone()); clone.lineno = this.lineno; clone.filename = this.filename; return clone; }; /** * Return <name>(). * * @return {String} * @api public */ Call.prototype.toString = function(){ return this.name + '()'; };
Version data entries
64 entries across 64 versions & 2 rubygems