1 package MooseX::Types::Moose;
6 MooseX::Types::Moose - Types shipped with L<Moose>
14 use Moose::Util::TypeConstraints ();
16 use namespace::clean -except => [qw( meta )];
22 use MooseX::Types::Moose qw( Int Str );
34 my ($self, $x, $y) = @_;
35 croak 'First arg not an Int' unless is_Int($x);
36 croak 'Second arg not an Int' unless is_Int($y);
44 This package contains a virtual library for L<MooseX::Types> that
45 is able to export all types known to L<Moose>. See L<MooseX::Types>
46 for general usage information.
50 # all available builtin types as short and long name
53 Moose::Util::TypeConstraints->list_all_builtin_type_constraints;
59 Overrides L<MooseX::Types::Base>' C<type_storage> to provide a hash
60 reference containing all built-in L<Moose> types.
64 # use prepopulated builtin hash as type storage
65 sub type_storage { \%BuiltIn_Storage }
69 L<MooseX::Types::Moose>,
71 L<Moose::Util::TypeConstraints>
75 See L<MooseX::Types/AUTHOR>.
79 This program is free software; you can redistribute it and/or modify
80 it under the same terms as perl itself.