Add a load of docs to some of the under documented bits of type constraints. I don...
authorTomas Doran <bobtfish@bobtfish.net>
Tue, 26 Aug 2008 21:09:30 +0000 (21:09 +0000)
committerTomas Doran <bobtfish@bobtfish.net>
Tue, 26 Aug 2008 21:09:30 +0000 (21:09 +0000)
commit9758af8af0c362eebb20cf2501eac3f734d7fef3
tree2cb0978b127959e870346227446bf91052674429
parentf8a5a70e3ae839c559ea3ae0f921c0eb734a94f4
Add a load of docs to some of the under documented bits of type constraints. I don't write great docs, but it's better than it was. Also fix exception in Moose::Meta::TypeConstraint predicate methods, add an exception to Moose::Meta::TypeConstraint::Registry::add_type_constraint if you don't supply something which looks like a type constraint. Couple of other little fixes: warnings, general cleanup and doc additions in the type constraint code.
Changes
lib/Moose/Meta/Attribute.pm
lib/Moose/Meta/TypeConstraint.pm
lib/Moose/Meta/TypeConstraint/Registry.pm
lib/Moose/Util/TypeConstraints.pm
t/040_type_constraints/001_util_type_constraints.t