Sha256: 4368f1342d90ffdb93995f5d2ee0e1669d15271556508bc739444864aaa8a9e4

Contents?: true

Size: 674 Bytes

Versions: 83

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 `@page name`.
 *
 * @return {String}
 * @api public
 */

Page.prototype.toString = function(){
  return '@page ' + this.selector;
};

Version data entries

83 entries across 69 versions & 2 rubygems

Version Path
ela-4.1.6 node_modules/codo/node_modules/stylus/lib/nodes/page.js
ela-4.1.6 node_modules/poised/node_modules/nib/node_modules/stylus/lib/nodes/page.js
ela-4.1.5 node_modules/codo/node_modules/stylus/lib/nodes/page.js
ela-4.1.5 node_modules/poised/node_modules/nib/node_modules/stylus/lib/nodes/page.js
ela-4.1.4 node_modules/poised/node_modules/nib/node_modules/stylus/lib/nodes/page.js
ela-4.1.4 node_modules/codo/node_modules/stylus/lib/nodes/page.js
ela-4.1.3 node_modules/codo/node_modules/stylus/lib/nodes/page.js
ela-4.1.3 node_modules/poised/node_modules/nib/node_modules/stylus/lib/nodes/page.js
ela-4.1.2 node_modules/codo/node_modules/stylus/lib/nodes/page.js
ela-4.1.2 node_modules/poised/node_modules/nib/node_modules/stylus/lib/nodes/page.js
ela-4.1.1 node_modules/poised/node_modules/nib/node_modules/stylus/lib/nodes/page.js
ela-4.1.1 node_modules/codo/node_modules/stylus/lib/nodes/page.js
ela-4.1.0 node_modules/poised/node_modules/nib/node_modules/stylus/lib/nodes/page.js
ela-4.1.0 node_modules/codo/node_modules/stylus/lib/nodes/page.js
ela-4.0.0 node_modules/codo/node_modules/stylus/lib/nodes/page.js
ela-3.4.3 node_modules/codo/node_modules/stylus/lib/nodes/page.js
ela-3.4.2 node_modules/codo/node_modules/stylus/lib/nodes/page.js
ela-3.4.0 node_modules/codo/node_modules/stylus/lib/nodes/page.js
ela-3.3.1 node_modules/codo/node_modules/stylus/lib/nodes/page.js
ela-3.3.0 node_modules/poised.old/node_modules/nib/node_modules/stylus/lib/nodes/page.js