2016-02-02 18:38:12 +00:00
|
|
|
(function() {
|
2018-02-12 05:05:29 +00:00
|
|
|
/**
|
|
|
|
Definition of the BaseGenerator class.
|
|
|
|
@module generators/base-generator
|
|
|
|
@license MIT. See LICENSE.md for details.
|
|
|
|
*/
|
2016-02-02 18:38:12 +00:00
|
|
|
var BaseGenerator;
|
2016-01-27 10:29:26 +00:00
|
|
|
|
2018-02-12 05:05:29 +00:00
|
|
|
/**
|
|
|
|
The BaseGenerator class is the root of the generator hierarchy. Functionality
|
|
|
|
common to ALL generators lives here.
|
|
|
|
*/
|
2016-02-02 18:38:12 +00:00
|
|
|
module.exports = BaseGenerator = (function() {
|
2018-02-12 05:05:29 +00:00
|
|
|
class BaseGenerator {
|
|
|
|
/** Base-class initialize. */
|
|
|
|
constructor(format) {
|
|
|
|
this.format = format;
|
|
|
|
}
|
2016-01-27 10:29:26 +00:00
|
|
|
|
2018-02-12 05:05:29 +00:00
|
|
|
};
|
2016-01-27 10:29:26 +00:00
|
|
|
|
|
|
|
/** Status codes. */
|
2016-02-02 18:38:12 +00:00
|
|
|
BaseGenerator.prototype.codes = require('../core/status-codes');
|
|
|
|
|
2016-01-27 10:29:26 +00:00
|
|
|
/** Generator options. */
|
2016-02-02 18:38:12 +00:00
|
|
|
BaseGenerator.prototype.opts = {};
|
|
|
|
|
|
|
|
return BaseGenerator;
|
|
|
|
|
2018-02-12 05:05:29 +00:00
|
|
|
}).call(this);
|
2016-01-27 10:29:26 +00:00
|
|
|
|
|
|
|
}).call(this);
|
2016-02-02 02:14:36 +00:00
|
|
|
|
|
|
|
//# sourceMappingURL=base-generator.js.map
|