Public methods
Method new()
Creates a Validator object.
Usage
Validator$new(test, failMessage)
Arguments
testA function to test the input. Should
take a single value as input and return a boolean.
failMessageA fail message to be displayed.
Method check()
Performs a check on the input.
Usage
Validator$check(value)
Arguments
valueInput value to be tested.
Returns
TRUE if the check passes, FALSE if otherwise.
Method clone()
The objects of this class are cloneable with this method.
Usage
Validator$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.