add hash slices
[gitmo/Moose-Autobox.git] / lib / Moose / Autobox / Indexed.pm
index d3706cf..feb0174 100644 (file)
@@ -3,14 +3,13 @@ use Moose::Role 'requires';
 
 our $VERSION = '0.01';
 
-requires qw/
-    at
-    put
-    exists 
-    keys 
-    values 
-    kv
-/;
+requires 'at';
+requires 'put';
+requires 'exists'; 
+requires 'keys';
+requires 'values'; 
+requires 'kv';
+requires 'slice';
 
 1;
 
@@ -22,12 +21,14 @@ __END__
 
 Moose::Autobox::Indexed - the Indexed role
 
-=head1 SYNOPOSIS
+=head1 DESCRIPTION
 
-  use Moose::Autobox;
-  use autobox;
+This is a role to describes an collection whose values can be 
+accessed by a key of some kind. 
 
-=head1 DESCRIPTION
+The role is entirely abstract, those which implement it must 
+supply all it's methods. Currently both L<Moose::Autobox::Array>
+and L<Moose::Autobox::Hash> implement this role.
 
 =head1 METHODS
 
@@ -67,11 +68,11 @@ Stevan Little E<lt>stevan@iinteractive.comE<gt>
 
 =head1 COPYRIGHT AND LICENSE
 
-Copyright 2006 by Infinity Interactive, Inc.
+Copyright 2006-2008 by Infinity Interactive, Inc.
 
 L<http://www.iinteractive.com>
 
 This library is free software; you can redistribute it and/or modify
 it under the same terms as Perl itself.
 
-=cut
\ No newline at end of file
+=cut