Moritz Onken > MooseX-Attribute-Deflator > MooseX::Attribute::Deflator::Registry

Download:
MooseX-Attribute-Deflator-2.2.2.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: v2.2.2   Source  

NAME ^

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

VERSION ^

version 2.2.2

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. 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
syntax highlighting: