fp docs - Split lib/doc/apply-fp-mapping into multiples files.

This commit is contained in:
Jeroen Engels
2016-02-09 11:03:34 +01:00
committed by John-David Dalton
parent 39735df82f
commit 6f4099c20b
8 changed files with 1067 additions and 924 deletions

View File

@@ -0,0 +1,11 @@
var Entry = require('docdown/lib/entry'),
getReorderedParams = require('./parameters'),
getReorderedExample = require('./example');
/**
* Updates `docdown` `Entry`'s prototype so that parameters/arguments are reordered according to `mapping`.
*/
module.exports = function applyFPMapping(mapping) {
Entry.prototype.getParams = getReorderedParams(mapping);
Entry.prototype.getExample = getReorderedExample(mapping);
};