The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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 integer 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