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

Version Path
stylus-source-0.21.2 vendor/lib/nodes/page.js
stylus-source-0.21.1 vendor/lib/nodes/page.js
stylus-source-0.21.0 vendor/lib/nodes/page.js
stylus-source-0.20.1 vendor/lib/nodes/page.js
stylus-source-0.20.0 vendor/lib/nodes/page.js
stylus-source-0.19.8 vendor/lib/nodes/page.js
stylus-source-0.19.7 vendor/lib/nodes/page.js
stylus-source-0.19.6 vendor/lib/nodes/page.js
stylus-source-0.19.5 vendor/lib/nodes/page.js
stylus-source-0.19.4 vendor/lib/nodes/page.js
stylus-source-0.19.3 vendor/lib/nodes/page.js
stylus-source-0.19.2 vendor/lib/nodes/page.js
stylus-source-0.19.1 vendor/lib/nodes/page.js
stylus-source-0.19.0 vendor/lib/nodes/page.js
stylus-source-0.18.0 vendor/lib/nodes/page.js
stylus-source-0.17.0 vendor/lib/nodes/page.js
stylus-source-0.15.4 lib/stylus/nodes/page.js