File Coverage

blib/lib/List/Objects/WithUtils/Array.pm
Criterion Covered Total %
statement 19 19 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 25 25 100.0


line stmt bran cond sub pod time code
1             package List::Objects::WithUtils::Array;
2             $List::Objects::WithUtils::Array::VERSION = '2.027002';
3 205     205   136006 use strictures 2;
  205         4950  
  205         9333  
4              
5             require Role::Tiny;
6             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 205     205   51045 use Exporter ();
  205         395  
  205         10449  
14             our @EXPORT = 'array';
15              
16             sub import {
17 176     176   486 my $pkg = caller;
18 205     205   2232 { no strict 'refs';
  205         353  
  205         31003  
  176         350  
19 176         365 ${"${pkg}::a"} = ${"${pkg}::a"}; ${"${pkg}::b"} = ${"${pkg}::b"};
  176         666  
  176         914  
  176         363  
  176         584  
  176         625  
20             }
21 176         12434 goto &Exporter::import
22             }
23              
24 350     350 1 18382 sub array { __PACKAGE__->new(@_) }
25              
26             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. Methods are documented there.
44              
45             This class also consumes
46             L, which adds the
47             B & B junction-returning methods; see the POD for
48             L and
49             L for details.
50              
51             =head2 array
52              
53             Creates a new array object.
54              
55             =head1 AUTHOR
56              
57             Jon Portnoy
58              
59             Derived from L by Matt Phillips (CPAN: MATTP) et al
60              
61             Licensed under the same terms as Perl
62              
63             =cut