1 package MooseX::Types::Moose;
5 MooseX::Types::Moose - Types shipped with L<Moose>
13 use Moose::Util::TypeConstraints ();
20 use MooseX::Types::Moose qw( Int Str );
32 my ($self, $x, $y) = @_;
33 croak 'First arg not an Int' unless is_Int($x);
34 croak 'Second arg not an Int' unless is_Int($y);
42 This package contains a virtual library for L<MooseX::Types> that
43 is able to export all types known to L<Moose>. See L<MooseX::Types>
44 for general usage information.
48 # all available builtin types as short and long name
51 Moose::Util::TypeConstraints->list_all_builtin_type_constraints;
57 Overrides L<MooseX::Types::Base>' C<type_storage> to provide a hash
58 reference containing all built-in L<Moose> types.
62 # use prepopulated builtin hash as type storage
63 sub type_storage { \%BuiltIn_Storage }
67 L<MooseX::Types::Moose>,
69 L<Moose::Util::TypeConstraints>
71 =head1 AUTHOR AND COPYRIGHT
73 Robert 'phaylon' Sedlacek C<E<lt>rs@474.atE<gt>>, with many thanks to
74 the C<#moose> cabal on C<irc.perl.org>.
78 This program is free software; you can redistribute it and/or modify
79 it under the same terms as perl itself.