You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
428 B
30 lines
428 B
|
|
/** |
|
* Module dependencies. |
|
*/ |
|
|
|
var Runnable = require('./runnable'); |
|
|
|
/** |
|
* Expose `Hook`. |
|
*/ |
|
|
|
module.exports = Hook; |
|
|
|
/** |
|
* Initialize a new `Hook` with the given `title` and callback `fn`. |
|
* |
|
* @param {String} title |
|
* @param {Function} fn |
|
* @api private |
|
*/ |
|
|
|
function Hook(title, fn) { |
|
Runnable.call(this, title, fn); |
|
} |
|
|
|
/** |
|
* Inherit from `Runnable.prototype`. |
|
*/ |
|
|
|
Hook.prototype.__proto__ = Runnable.prototype;
|
|
|