1 package MooseX::Types::UndefinedType;
5 MooseX::Types::UndefinedType - Represents a not yet defined type
12 use overload '""' => sub { shift->name },
17 Whenever a type handle function (e.g. C<Int()> can't find a type
18 constraint under it's full name, it assumes it has not yet been defined.
19 It will then return an instance of this class, handling only
20 stringification, name and possible identification of undefined types.
26 Takes a full type name as argument and returns an instance of this
31 sub new { bless { name => $_[1] }, $_[0] }
35 Returns the stored type name.
39 sub name { $_[0]->{name} }
43 L<MooseX::Types::Moose>,
44 L<Moose::Util::TypeConstraints>,
45 L<Moose::Meta::TypeConstraint>
47 =head1 AUTHOR AND COPYRIGHT
49 Robert 'phaylon' Sedlacek C<E<lt>rs@474.atE<gt>>, with many thanks to
50 the C<#moose> cabal on C<irc.perl.org>.
54 This program is free software; you can redistribute it and/or modify
55 it under the same terms as perl itself.