Data::Schema::Type::Comparable - Role for comparable types
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.
Require that the data is one of the specified choices.
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.
A convenient attribute for not_one_of when there is only one item in the blacklist.
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.