 	@_.each list, (row) =>
 		@echo (@chalk.white(@_.pad row[0], width)), row[1]
 
+###
+Reads a JSON file.
+
+@param {String} [filepath] Path to a file.
+###
 Generator::readJsonFile = (filepath) ->
 	JSON.parse(@readFileAsString(filepath))
 
+###
+Reads a template from templates folder.
+
+@param {String} [filepath] Path to a file.
+###
 Generator::readTemplate = (filepath) ->
 	fs.readFileSync (path.join @sourceRoot(), filepath), encoding: 'utf-8'
 
+###
+Reads a template from templates folder and processes it.
+
+@param {String} [filepath] Path to a file.
+###
 Generator::process = (filepath) ->
 	@engine (@readTemplate filepath), this
 
+###
+Adds a pattern to `.gitignore`. Creates the file if it doesn’t exist.
+
+@param {String} pattern Ignore pattern.
+###
 Generator::gitIgnore = (pattern) ->
 	filepath = '.gitignore'
 	if fs.existsSync filepath

###
Finds “cursor” position in template: line and column of “®” symbol.

@param {String} File contents
@returns {String} line:column
###
Generator::getCursorPosition = (str) ->
	[str, __] = str.split '®'

###
Renders template, saves file and opens it in default editor.

@param {String} template Template file name.
@param {String} [filepath] Destination file.
###
Generator::templateAndOpen = (template, filepath) ->
	filepath = template  unless filepath
