
Moose::Meta::TypeConstraint::Registry - registry for type constraints

This module is currently only use internally by Moose::Util::TypeConstraints. It can be used to create your own private type constraint registry as well, but the details of that are currently left as an exercise to the reader. (One hint: You can use the 'parent_registry' feature to connect your private version with the base Moose registry and base Moose types will automagically be found too).

Returns a type constraint object from the registry by name. Will return false if the supplied type name cannot be found.
Adds a type constraint object to the registry. Will throw an exception if no type is supplied, or the supplied object does not inherit from Moose::Meta::TypeConstraint

All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.

Stevan Little <stevan@iinteractive.com>

Copyright 2006-2008 by Infinity Interactive, Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.