NAME
Data::Schema::Type::Int - Type handler for integer numbers ('int')
SYNOPSIS
use Data::Schema;
DESCRIPTION
This is the type handler for type 'int'.
TYPE ATTRIBUTES
In addition to those provided by Num, ints have additional attributes.
mod => [X, Y]
Require that (data mod X) equals Y. For example, mod => [2, 1] effectively specifies odd numbers.
divisible_by => X
Require that (data mod X) equals 0.
not_divisible_by => X
Require that (data mod X) not equals 0.
Synonyms: undivisible_by
AUTHOR
Steven Haryanto, <steven at masterweb.net>
COPYRIGHT & LICENSE
Copyright 2009 Steven Haryanto, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.