Show ArrayRef in synopsis
[gitmo/MooseX-Types.git] / lib / MooseX / Types / Moose.pm
index 8c2ec23..c090618 100644 (file)
@@ -1,11 +1,6 @@
 package MooseX::Types::Moose;
-our $VERSION = "0.20";
 
-=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;
@@ -19,16 +14,16 @@ use namespace::clean -except => [qw( meta )];
 
   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) = @_;
@@ -70,10 +65,6 @@ L<MooseX::Types::Moose>,
 L<Moose>, 
 L<Moose::Util::TypeConstraints>
 
-=head1 AUTHOR
-
-See L<MooseX::Types/AUTHOR>.
-
 =head1 LICENSE
 
 This program is free software; you can redistribute it and/or modify