Public methods
Method new()
Creates a Validator object.
Usage
Validator$new(test, failMessage)
Arguments
test
A function to test the input. Should
take a single value as input and return a boolean.
failMessage
A fail message to be displayed.
Method check()
Performs a check on the input.
Usage
Validator$check(value)
Arguments
value
Input 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
deep
Whether to make a deep clone.