mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-04-19 14:20:25 +01:00
Reintroduce HackMyCore, dropping the interim submodule, and reorganize and improve tests.
29 lines
565 B
CoffeeScript
29 lines
565 B
CoffeeScript
###*
|
|
Definition of the BaseGenerator class.
|
|
@module base-generator.js
|
|
@license MIT. See LICENSE.md for details.
|
|
###
|
|
|
|
|
|
|
|
# Use J. Resig's nifty class implementation
|
|
Class = require '../utils/class'
|
|
|
|
|
|
|
|
###*
|
|
The BaseGenerator class is the root of the generator hierarchy. Functionality
|
|
common to ALL generators lives here.
|
|
###
|
|
|
|
BaseGenerator = module.exports = Class.extend
|
|
|
|
###* Base-class initialize. ###
|
|
init: ( outputFormat ) -> @format = outputFormat
|
|
|
|
###* Status codes. ###
|
|
codes: require '../core/status-codes'
|
|
|
|
###* Generator options. ###
|
|
opts: { }
|