Rechercher une page de manuel
Moose::Meta::TypeConstraint::Registry.3pm
Langue: en
Version: 2008-12-08 (ubuntu - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
Moose::Meta::TypeConstraint::Registry - registry for type constraintsDESCRIPTION
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).METHODS
- meta
- new
- get_parent_registry
- set_parent_registry ($registry)
- has_parent_registry
- type_constraints
- has_type_constraint ($type_name)
- get_type_constraint ($type_name)
- Returns a type constraint object from the registry by name. Will return false if the supplied type name cannot be found.
- add_type_constraint ($type)
- 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
- find_type_constraint ($type_name)
BUGS
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.AUTHOR
Stevan Little <stevan@iinteractive.com>COPYRIGHT AND LICENSE
Copyright 2006-2008 by Infinity Interactive, Inc.<http://www.iinteractive.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre