Sha256: d3ad8ebb855c207314e6110a8e14d9e14eeb0939830b85e35b8fa024cab9b4f7
Contents?: true
Size: 674 Bytes
Versions: 17
Compression:
Stored size: 674 Bytes
Contents
/*! * Stylus - Page * Copyright(c) 2010 LearnBoost <dev@learnboost.com> * MIT Licensed */ /** * Module dependencies. */ var Node = require('./node'); /** * Initialize a new `Page` with the given `selector` and `block`. * * @param {Selector} selector * @param {Block} block * @api public */ var Page = module.exports = function Page(selector, block){ Node.call(this); this.selector = selector; this.block = block; }; /** * Inherit from `Node.prototype`. */ Page.prototype.__proto__ = Node.prototype; /** * Return `@oage name`. * * @return {String} * @api public */ Page.prototype.toString = function(){ return '@page ' + this.selector; };
Version data entries
17 entries across 17 versions & 1 rubygems