0.01
[gitmo/MooseX-AttributeHelpers.git] / lib / MooseX / AttributeHelpers / Collection.pm
index 12c3d99..38af3bd 100644 (file)
@@ -15,13 +15,12 @@ has 'container_type' => (
 );
 
 has 'container_type_constraint' => (
-    is       => 'rw',
-    isa      => 'Moose::Meta::TypeConstraint',
-    required => 1,
+    is  => 'rw',
+    isa => 'Moose::Meta::TypeConstraint',
 );
 
 before 'process_options_for_provides' => sub {
-    my ($self, $options) = @_;
+    my ($self, $options) = @_; 
     
     if (exists $options->{isa}) {
         my $type = $options->{isa};
@@ -78,12 +77,26 @@ __END__
 
 =head1 NAME
 
-=head1 SYNOPSIS
+MooseX::AttributeHelpers::Collection - Base class for all collection type helpers
 
 =head1 DESCRIPTION
 
+Documentation to come.
+
 =head1 METHODS
 
+=over 4
+
+=item B<container_type>
+
+=item B<container_type_constraint>
+
+=item B<has_container_type>
+
+=item B<process_options_for_provides>
+
+=back
+
 =head1 BUGS
 
 All complex software has bugs lurking in it, and this module is no