File Coverage

blib/lib/Moose/Autobox/Indexed.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Moose::Autobox::Indexed;
2             # ABSTRACT: the Indexed role
3 14     14   6904 use Moose::Role 'requires';
  14         22  
  14         98  
4 14     14   43098 use namespace::autoclean;
  14         24  
  14         103  
5              
6             our $VERSION = '0.16';
7              
8             requires 'at';
9             requires 'put';
10             requires 'exists';
11             requires 'keys';
12             requires 'values';
13             requires 'kv';
14             requires 'slice';
15             requires qw(each each_key each_value each_n_values);
16              
17             1;
18              
19             __END__
20              
21             =pod
22              
23             =encoding UTF-8
24              
25             =head1 NAME
26              
27             Moose::Autobox::Indexed - the Indexed role
28              
29             =head1 VERSION
30              
31             version 0.16
32              
33             =head1 DESCRIPTION
34              
35             This is a role to describes an collection whose values can be
36             accessed by a key of some kind.
37              
38             The role is entirely abstract, those which implement it must
39             supply all it's methods. Currently both L<Moose::Autobox::Array>
40             and L<Moose::Autobox::Hash> implement this role.
41              
42             =head1 METHODS
43              
44             =over 4
45              
46             =item C<meta>
47              
48             =back
49              
50             =head1 REQUIRED METHODS
51              
52             =over 4
53              
54             =item C<at>
55              
56             =item C<put>
57              
58             =item C<exists>
59              
60             =item C<keys>
61              
62             =item C<values>
63              
64             =item C<kv>
65              
66             =item C<slice>
67              
68             =item C<each>
69              
70             =item C<each_key>
71              
72             =item C<each_value>
73              
74             =back
75              
76             =head1 SUPPORT
77              
78             Bugs may be submitted through L<the RT bug tracker|https://rt.cpan.org/Public/Dist/Display.html?Name=Moose-Autobox>
79             (or L<bug-Moose-Autobox@rt.cpan.org|mailto:bug-Moose-Autobox@rt.cpan.org>).
80              
81             There is also a mailing list available for users of this distribution, at
82             L<http://lists.perl.org/list/moose.html>.
83              
84             There is also an irc channel available for users of this distribution, at
85             L<C<#moose> on C<irc.perl.org>|irc://irc.perl.org/#moose>.
86              
87             =head1 AUTHOR
88              
89             Stevan Little <stevan.little@iinteractive.com>
90              
91             =head1 COPYRIGHT AND LICENSE
92              
93             This software is copyright (c) 2006 by Infinity Interactive, Inc.
94              
95             This is free software; you can redistribute it and/or modify it under
96             the same terms as the Perl 5 programming language system itself.
97              
98             =cut