Data::Schema::Type::Comparable - Role for comparable types
version 0.136
use Data::Schema;
This is the comparable role. It provides attributes like is, one_of, etc. It is used by most types, for example 'str', all numeric types, etc.
Role consumer must provide method '_equal' which takes two values and returns 0 or 1 depending on whether the values are equal.
Aliases: is_one_of
Require that the data is one of the specified choices.
Aliases: isnt_one_of
Require that the data is not listed in one of the specified "blacklists".
A convenient attribute for one_of when there is only one choice.
Aliases: not
A convenient attribute for not_one_of when there is only one item in the blacklist.
Steven Haryanto <stevenharyanto@gmail.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.
To install Data::Schema, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Schema
CPAN shell
perl -MCPAN -e shell install Data::Schema
For more information on module installation, please visit the detailed CPAN module installation guide.