2 var chalk = require('chalk');
3 var figures = require('figures');
7 * Used to space/separate choices group
9 * @param {String} line Separation line content (facultative)
14 this.type = 'separator';
15 this.line = chalk.dim(line || new Array(15).join(figures.line));
20 * @return {String} the separator display string
28 * Helper function returning false if object is a separator
29 * @param {Object} obj object to test against
30 * @return {Boolean} `false` if object is a separator
33 Separator.exclude = function (obj) {
34 return obj.type !== 'separator';
37 module.exports = Separator;