X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FTypes%2FMoose.pm;h=e29ce5a5f8ca33d758aa43cd4c93099be4f7199a;hb=4eb26e95f22b3969b85ef62b2aca03c024b9b4e7;hp=6abb3209f871672b79ee9874ed6c931315607928;hpb=6d7f2c07382702d3807060253671ac8572c7e33e;p=gitmo%2FMooseX-Types.git diff --git a/lib/MooseX/Types/Moose.pm b/lib/MooseX/Types/Moose.pm index 6abb320..e29ce5a 100644 --- a/lib/MooseX/Types/Moose.pm +++ b/lib/MooseX/Types/Moose.pm @@ -1,11 +1,6 @@ package MooseX::Types::Moose; -our $VERSION = "0.22"; -=head1 NAME - -MooseX::Types::Moose - Types shipped with L - -=cut +# ABSTRACT: Type exports that match the types shipped with L use warnings; use strict; @@ -13,22 +8,22 @@ use strict; use MooseX::Types; use Moose::Util::TypeConstraints (); -use namespace::clean -except => [qw( meta )]; +use namespace::autoclean; =head1 SYNOPSIS package Foo; use Moose; - use MooseX::Types::Moose qw( Int Str ); + use MooseX::Types::Moose qw( ArrayRef Int Str ); use Carp qw( croak ); has 'name', is => 'rw', isa => Str; - has 'id', + has 'ids', is => 'rw', - isa => Int; + isa => ArrayRef[Int]; sub add { my ($self, $x, $y) = @_; @@ -48,8 +43,8 @@ for general usage information. =cut # all available builtin types as short and long name -my %BuiltIn_Storage - = map { ($_) x 2 } +my %BuiltIn_Storage + = map { ($_) x 2 } Moose::Util::TypeConstraints->list_all_builtin_type_constraints; =head1 METHODS @@ -67,13 +62,9 @@ sub type_storage { \%BuiltIn_Storage } =head1 SEE ALSO L, -L, +L, L -=head1 AUTHOR - -See L. - =head1 LICENSE This program is free software; you can redistribute it and/or modify