NAME
MooseX::Attribute::Deflator::Registry - Registry class for attribute deflators
VERSION
version 2.1.10
DESCRIPTION
This class contains a registry for deflator and inflator functions.
ATTRIBUTES
METHODS
- add_inflator( $type_constraint, $coderef )
- add_deflator( $type_constraint, $coderef )
- set_inflator( $type_constraint, $coderef )
- set_deflator( $type_constraint, $coderef )
-
Add a inflator/deflator function for
$type_constraint
. Existing functions are overwritten. - has_inflator( $type_constraint )
- has_deflator( $type_constraint )
-
Predicate methods.
- find_inflator( $type_constraint )
- find_deflator( $type_constraint )
-
Finds a suitable deflator/inflator by bubbling up the type hierarchy. it returns the matching type constraint, its deflator an optionally its inlined deflator if it exists.
AUTHOR
Moritz Onken
COPYRIGHT AND LICENSE
This software is Copyright (c) 2012 by Moritz Onken.
This is free software, licensed under:
The (three-clause) BSD License