new Validator = ({ age: 'int 22-48' });
If memory serves you can parse that type of string in the Validator constructor and insert the Rule structures you already have in place of it.
new Validator = ({ age: 'int 22-48' });
If memory serves you can parse that type of string in the Validator constructor and insert the Rule structures you already have in place of it.