X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FTypes%2FMoose.pm;h=c090618426c1a29192263244f6025010e59487a1;hb=c4997e0caed2cedf77861469881bc029723f2c96;hp=f2bca5bd79eb5fe2e22a3ac01149e3d370bf0200;hpb=52d358e2cf004a8b632b655832f7e9101db3c4dc;p=gitmo%2FMooseX-Types.git diff --git a/lib/MooseX/Types/Moose.pm b/lib/MooseX/Types/Moose.pm index f2bca5b..c090618 100644 --- a/lib/MooseX/Types/Moose.pm +++ b/lib/MooseX/Types/Moose.pm @@ -1,32 +1,29 @@ package MooseX::Types::Moose; -=head1 NAME - -MooseX::Types::Moose - Types shipped with L - -=cut +# ABSTRACT: Type exports that match the types shipped with L use warnings; use strict; use MooseX::Types; use Moose::Util::TypeConstraints (); -use namespace::clean; + +use namespace::clean -except => [qw( meta )]; =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) = @_; @@ -68,11 +65,6 @@ L, L, L -=head1 AUTHOR AND COPYRIGHT - -Robert 'phaylon' Sedlacek Crs@474.atE>, with many thanks to -the C<#moose> cabal on C. - =head1 LICENSE This program is free software; you can redistribute it and/or modify