'use strict';
/* eslint camelcase: 0 */

module.exports = function(keyword, name, description, line) {
  return {
    token: 'feature',
    keyword: keyword,
    name: name,
    description: description,
    line: line,
    scenarios: []
  };
}

'use strict';
/* eslint camelcase: 0 */

function Feature(keyword, name, description, line) {
  this.token = 'feature';
  this.keyword = keyword;
  this.name = name;
  this.description = description;
  this.line = line;
  this.scenarios = [];
  this.tags = [];
};

module.exports = function(keyword, name, description, line) {
  return new Feature(keyword, name, description, line);
}

Use a contructor for feature objects to allow ease of expanding functionality.
Use a contructor for feature objects to allow ease of expanding functionality.
