Show ArrayRef in synopsis
[gitmo/MooseX-Types.git] / lib / MooseX / Types / Moose.pm
index f2bca5b..c090618 100644 (file)
@@ -1,32 +1,29 @@
 package MooseX::Types::Moose;
 
-=head1 NAME
-
-MooseX::Types::Moose - Types shipped with L<Moose>
-
-=cut
+# ABSTRACT: Type exports that match the types shipped with L<Moose>
 
 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<MooseX::Types::Moose>,
 L<Moose>, 
 L<Moose::Util::TypeConstraints>
 
-=head1 AUTHOR AND COPYRIGHT
-
-Robert 'phaylon' Sedlacek C<E<lt>rs@474.atE<gt>>, with many thanks to
-the C<#moose> cabal on C<irc.perl.org>.
-
 =head1 LICENSE
 
 This program is free software; you can redistribute it and/or modify