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