src/rules.js
function(name, validator) {
    var async = this.isAsync(name);
    var rule = new Rule(name, rules[name], async);
    rule.setValidator(validator);
    return rule;
  }
function(name, validator) {
    var async = this.isAsync(name);
    var rule = new Rule(name, rules[name], async);
    rule.setValidator(validator);
    return rule;
  }
function ( name , validator ) { var async = this . isAsync ( name ) ; var rule = new Rule ( name , rules [ name ] , async ) ; rule . setValidator ( validator ) ; return rule ; }
Get rule by name

@param  {string} name
@param {Validator}
@return {Rule}
Get rule by name