lib/verifier.js
function (rules) {
		if (!_.isArray(rules)) {
			rules = [ rules ];
		}

		var that = this;

		return _.map(rules, function (rule) {
			if (typeof rule === 'string') {
				return that._parseString(rule);
			}

			if (_.isPlainObject(rule)) {
				return that._parseObject(rule);
			}

			throw new Error('#V1: invalid rule type, must be string or plain object');
		});
	}
function (rules) {
		if (!_.isArray(rules)) {
			rules = [ rules ];
		}

		var that = this;

		return _.map(rules, function (rule) {
			if (typeof rule === 'string') {
				return that._parseString(rule);
			}

			if (_.isPlainObject(rule)) {
				return that._parseObject(rule);
			}

			throw new Error('#V1: invalid rule type, must be string or plain object');
		});
	}
function ( rules ) { if ( ! _ . isArray ( rules ) ) { rules = [ rules ] ; } var that = this ; return _ . map ( rules , function ( rule ) { if ( typeof rule === 'string' ) { return that . _parseString ( rule ) ; } if ( _ . isPlainObject ( rule ) ) { return that . _parseObject ( rule ) ; } throw new Error ( '#V1: invalid rule type, must be string or plain object' ) ; } ) ; }
convert raw rules array to Rule array

@method
@param {Array|String} rules - rules for parsing
@this Verifier
@returns {Rule[]}
convert raw rules array to Rule array