Florian Ragwitz > MooseX-Types-0.24 > MooseX::Types::UndefinedType

Download:
MooseX-Types-0.24.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  6
Open  3
Stalled  1
View/Report Bugs
Module Version: 0.24   Source   Latest Release: MooseX-Types-0.44

NAME ^

MooseX::Types::UndefinedType - Represents a not yet defined type

DESCRIPTION ^

Whenever a type handle function (e.g. Int() can't find a type constraint under it's full name, it assumes it has not yet been defined. It will then return an instance of this class, handling only stringification, name and possible identification of undefined types.

Later, when you try to use the Undefined Type Constraint, autovivification will be attempted.

METHODS ^

new

Takes a full type name as argument and returns an instance of this class.

name

Returns the stored type name.

__autovivify

Try to see if the type constraint has yet been defined and if so create it.

AUTOLOAD

Try to autovivify and delegate

DESTROY

Moose::Meta::TypeConstraint::Parameterizable complains if this isn't here. TODO to find out why.

SEE ALSO ^

MooseX::Types::Moose, Moose::Util::TypeConstraints, Moose::Meta::TypeConstraint, Carp::Clan

AUTHOR ^

See "AUTHOR" in MooseX::Types.

LICENSE ^

This program is free software; you can redistribute it and/or modify it under the same terms as perl itself.

syntax highlighting: