Data::Schema::Type::Sortable - Role for sortable types
This is the sortable role. It provides attributes like less_than (lt), greater_than (gt), etc. It is used by many types, for example 'str', all numeric types, etc.
Role consumer must provide method '_compare' which takes two values and returns -1, 0, or 1 a la Perl's standard cmp operator.
Require that the value is not less than some specified minimum.
Require that the value is not less or equal than some specified minimum.
Require that the value is less or equal than some specified maximum.
Require that the value is less than some specified maximum.
A convenient attribut to combine min and max.
Steven Haryanto <email@example.com>
This software is copyright (c) 2009 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.