Stefan Hornburg (Racke) > Data-Transpose-0.0004 > Data::Transpose::Validator::NumericRange

Download:
Data-Transpose-0.0004.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Data-Transpose-0.0011

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

syntax highlighting: