The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MooseX::Attribute::Deflator::Registry - Registry class for attribute deflators

VERSION

version 2.1.4

DESCRIPTION

This class contains a registry for deflator and inflator functions.

ATTRIBUTES

inflators ( isa => HashRef[CodeRef] )
deflators ( isa => HashRef[CodeRef] )

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.

AUTHOR

Moritz Onken

COPYRIGHT AND LICENSE

This software is Copyright (c) 2011 by Moritz Onken.

This is free software, licensed under:

  The (three-clause) BSD License