Sha256: f743f5e7e62e5438a24f712edcf32e646d85b51d246d8a19b5609828423b479f

Contents?: true

Size: 649 Bytes

Versions: 43

Compression:

Stored size: 649 Bytes

Contents

/*!
 * Jade - nodes - Case
 * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
 * MIT Licensed
 */

/**
 * Module dependencies.
 */

var Node = require('./node');

/**
 * Initialize a new `Case` with `expr`.
 *
 * @param {String} expr
 * @api public
 */

var Case = exports = module.exports = function Case(expr, block){
  this.expr = expr;
  this.block = block;
};

/**
 * Inherit from `Node`.
 */

Case.prototype.__proto__ = Node.prototype;

var When = exports.When = function When(expr, block){
  this.expr = expr;
  this.block = block;
  this.debug = false;
};

/**
 * Inherit from `Node`.
 */

When.prototype.__proto__ = Node.prototype;

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
stylus-source-0.49.3 vendor/node_modules/mocha/node_modules/jade/lib/nodes/case.js
snowball-0.1.22 node_modules/jade/lib/nodes/case.js
stylus-source-0.42.2 vendor/node_modules/mocha/node_modules/jade/lib/nodes/case.js
stylus-source-0.42.1 vendor/node_modules/mocha/node_modules/jade/lib/nodes/case.js
stylus-source-0.42.0 vendor/node_modules/mocha/node_modules/jade/lib/nodes/case.js
stylus-source-0.41.3 vendor/node_modules/mocha/node_modules/jade/lib/nodes/case.js
stylus-source-0.41.2 vendor/node_modules/mocha/node_modules/jade/lib/nodes/case.js
stylus-source-0.41.1 vendor/node_modules/mocha/node_modules/jade/lib/nodes/case.js
stylus-source-0.41.0 vendor/node_modules/mocha/node_modules/jade/lib/nodes/case.js
stylus-source-0.40.3 vendor/node_modules/mocha/node_modules/jade/lib/nodes/case.js
stylus-source-0.40.2 vendor/node_modules/mocha/node_modules/jade/lib/nodes/case.js
stylus-source-0.40.1 vendor/node_modules/mocha/node_modules/jade/lib/nodes/case.js
stylus-source-0.40.0 vendor/node_modules/mocha/node_modules/jade/lib/nodes/case.js
stylus-source-0.39.4 vendor/node_modules/mocha/node_modules/jade/lib/nodes/case.js
stylus-source-0.39.3 vendor/node_modules/mocha/node_modules/jade/lib/nodes/case.js
stylus-source-0.39.2 vendor/node_modules/mocha/node_modules/jade/lib/nodes/case.js
stylus-source-0.39.1 vendor/node_modules/mocha/node_modules/jade/lib/nodes/case.js
stylus-source-0.39.0 vendor/node_modules/mocha/node_modules/jade/lib/nodes/case.js
stylus-source-0.38.0 vendor/node_modules/mocha/node_modules/jade/lib/nodes/case.js
stylus-source-0.37.0 vendor/node_modules/mocha/node_modules/jade/lib/nodes/case.js