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
stylus-source-0.40.3 vendor/lib/nodes/page.js
stylus-source-0.40.2 vendor/lib/nodes/page.js
stylus-source-0.40.1 vendor/lib/nodes/page.js
stylus-source-0.40.0 vendor/lib/nodes/page.js
stylus-source-0.39.4 vendor/lib/nodes/page.js
stylus-source-0.39.3 vendor/lib/nodes/page.js
stylus-source-0.39.2 vendor/lib/nodes/page.js
stylus-source-0.39.1 vendor/lib/nodes/page.js
stylus-source-0.39.0 vendor/lib/nodes/page.js
stylus-source-0.38.0 vendor/lib/nodes/page.js
stylus-source-0.37.0 vendor/lib/nodes/page.js
stylus-source-0.36.1 vendor/lib/nodes/page.js
stylus-source-0.36.0 vendor/lib/nodes/page.js
stylus-source-0.35.1 vendor/lib/nodes/page.js
stylus-source-0.35.0 vendor/lib/nodes/page.js
stylus-source-0.34.1 vendor/lib/nodes/page.js
stylus-source-0.34.0 vendor/lib/nodes/page.js
stylus-source-0.33.1 vendor/lib/nodes/page.js
stylus-source-0.33.0 vendor/lib/nodes/page.js
stylus-source-0.32.1 vendor/lib/nodes/page.js