code: function Validator(config) {
    
    // Instance properties
    this.rules = {};
    this.rulesCount = 0;
    this.messages = {};
    this.optional = [];
    this.filters = {};
    this.postFilters = {};
    this.postValidations = [];
    
    // Options
    this.config = protos.extend({
      cleanup: true
    }, config || {});
    
    // Set context
    Object.defineProperty(this, '__context', {
      value: {},
      writable: true,
      enumerable: false,
      configurable: false
    });
  
    // App property
    Object.defineProperty(this, 'app', {
      value: protos.app,
      writable: true,
      enumerable: false,
      configurable: false
    });
    
  }
docs: Validator class
  
  @public
  @constructor
  @class Validator