package Moose::Autobox::Indexed;
use Moose::Role 'requires';
-our $VERSION = '0.01';
+our $VERSION = '0.12';
-requires qw/
- at
- put
- exists
- keys
- values
- kv
-/;
+requires 'at';
+requires 'put';
+requires 'exists';
+requires 'keys';
+requires 'values';
+requires 'kv';
+requires 'slice';
+requires qw(each each_key each_value each_n_values);
1;
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
=item B<kv>
+=item B<slice>
+
+=item B<each>
+
+=item B<each_key>
+
+=item B<each_value>
+
=back
=head1 BUGS
=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