logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

MooseX::Types::UndefinedType - a fallback type for when a type cannot be found

Author

       Robert "phaylon" Sedlacek <rs@474.at>

Description

       Whenever a type handle function (e.g. Int() can't find a type constraint under its 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.

   can_be_inlined
       Make sure that if a type hasn't been defined yet when Moose wants to inline it, we don't allow inlining.

   AUTOLOAD
       Try to autovivify and delegate

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

Name

       MooseX::Types::UndefinedType - a fallback type for when a type cannot be found

See Also

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

Support

       Bugs may be submitted through the RT bug tracker
       <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Types> (or bug-MooseX-Types@rt.cpan.org
       <mailto:bug-MooseX-Types@rt.cpan.org>).

       There is also a mailing list available for users of this distribution, at
       <http://lists.perl.org/list/moose.html>.

       There is also an irc channel available for users of this distribution, at "#moose" on "irc.perl.org"
       <irc://irc.perl.org/#moose>.

Version

       version 0.51

return

See Also