src/permission/config-compiler.js
function compileRuleset (path, rules) {
  const ruleset = pathParser.parse(path)

  ruleset.rules = {}

  for (const ruleType in rules) {
    ruleset.rules[ruleType] = ruleParser.parse(
      rules[ruleType], ruleset.variables
    )
  }

  return ruleset
}
function compileRuleset (path, rules) {
  const ruleset = pathParser.parse(path)

  ruleset.rules = {}

  for (const ruleType in rules) {
    ruleset.rules[ruleType] = ruleParser.parse(
      rules[ruleType], ruleset.variables
    )
  }

  return ruleset
}
function compileRuleset ( path , rules ) { const ruleset = pathParser . parse ( path ) ruleset . rules = { } for ( const ruleType in rules ) { ruleset . rules [ ruleType ] = ruleParser . parse ( rules [ ruleType ] , ruleset . variables ) } return ruleset }
Compiles an individual ruleset

@param   {String} path
@param   {Object} rules

@private
@returns {Object} compiledRuleset
Compiles an individual ruleset