nl_tokens: Public : Adds a validator to the model that checks to make sure the given attributes are valid numbers . ... names - One or more attribute names . opts - An optional object containing zero or more of the following options : nonnegative - Ensure that the number is not negative . maximum - Ensure that the number is not greater than this value . minimum - Ensure that the number is not less than this value . Returns the receiver .
pl_tokens: function validatesNumber ( ) { var names = Array . from ( arguments ) , opts = util . type ( names [ names . length - 1 ] ) === 'object' ? names . pop ( ) : { } ; names . forEach ( function ( <mask> ) { this . validate ( name , function ( ) { this . validateNumber ( name , opts ) ; } ) ; } , this ) ; return this ; }