Stefan Hornburg (Racke)

NAME

Data::Transpose::Validator::NumericRange - Validate numbers in a range

METHODS

new(min => $min, max => $max, integer => $bool)

Constructor, setting the minimum, the maximum and the interger option, which will validate only integers.

is_valid($number)

The validator. Returns a true value if the number is in the range passed to the constructor.

INTERNAL ACCESSORS

min

Return the minimum

min

Return the maximum

wants_integer

Return true if we have to validate only integers