List/Objects/WithUtils/Array.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 30 / 30 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
import
1.0
CRAP 1.0
« List/Objects/WithUtils/Hash.pm ↑ Summary List/Objects/WithUtils/Array/Immutable.pm »
1 package List::Objects::WithUtils::Array;
2 202 $List::Objects::WithUtils::Array::VERSION = '2.028002';
3 208 ▶use strictures 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 202 require Role::Tiny;
6 202 Role::Tiny->apply_roles_to_package( __PACKAGE__,
7 qw/
8 List::Objects::WithUtils::Role::Array
9 List::Objects::WithUtils::Role::Array::WithJunctions
10 /
11 );
12  
13 208 ▶use Exporter ();
Subroutine BEGIN: called CC=1 SCAR=0.0
14 202 our @EXPORT = 'array';
15  
16 sub import {
17 170 ▶ my $pkg = caller;
Subroutine import: called CC=1 SCAR=0.0
18 208 ▶ { no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
19 170 ${"${pkg}::a"} = ${"${pkg}::a"}; ${"${pkg}::b"} = ${"${pkg}::b"};
20 }
21 170 goto &Exporter::import
22 }
23  
24 340 ▶sub array { __PACKAGE__->new(@_) }
Subroutine array: called CC=1 SCAR=0.0
Pod documented
25  
26 202 1;
27  
28 =pod
29  
30 =head1 NAME
31  
32 List::Objects::WithUtils::Array - Array-type objects WithUtils
33  
34 =head1 SYNOPSIS
35  
36 use List::Objects::WithUtils 'array';
37  
38 my $array = array(qw/ a b c /);
39  
40 =head1 DESCRIPTION
41  
42 This class is the basic concrete implementation of
43 L<List::Objects::WithUtils::Role::Array>. Methods are documented there.
44  
45 This class also consumes
46 L<List::Objects::WithUtils::Role::Array::WithJunctions>, which adds the
47 B<any_items> & B<all_items> junction-returning methods; see the POD for
48 L<List::Objects::WithUtils::Role::Array::WithJunctions> and
49 L<List::Objects::WithUtils::Array::Junction> for details.
50  
51 =head2 array
52  
53 Creates a new array object.
54  
55 =head1 AUTHOR
56  
57 Jon Portnoy <avenj@cobaltirc.org>
58  
59 Derived from L<Data::Perl> by Matt Phillips (CPAN: MATTP) et al
60  
61 Licensed under the same terms as Perl
62  
63 =cut
« List/Objects/WithUtils/Hash.pm ↑ Summary List/Objects/WithUtils/Array/Immutable.pm »