src/validator.js
function FieldValidator(rules, config)
    {
        this.rules      = rules;
        this.fieldLabel = undefined;
        if (config) {
            this.setConfig(config);
        }
    }
function FieldValidator(rules, config)
    {
        this.rules      = rules;
        this.fieldLabel = undefined;
        if (config) {
            this.setConfig(config);
        }
    }
function FieldValidator ( rules , config ) { this . rules = rules ; this . fieldLabel = undefined ; if ( config ) { this . setConfig ( config ) ; } }
Object to validate rules again data field
@param array  rules  list of rules to apply
@param object config configuration object
Object to validate rules again data field