PPI/Structure/Constructor.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« PPI/Structure/Condition.pm ↑ Summary PPI/Structure/Given.pm »
1 package PPI::Structure::Constructor;
2  
3 =pod
4  
5 =head1 NAME
6  
7 PPI::Structure::Constructor - Anonymous hash or array constructor
8  
9 =head1 SYNOPSIS
10  
11 my $array = [ 'foo', 'bar' ];
12 my $hash = { foo => 'bar' };
13  
14 =head1 INHERITANCE
15  
16 PPI::Structure::Constructor
17 isa PPI::Structure
18 isa PPI::Node
19 isa PPI::Element
20  
21 =head1 DESCRIPTION
22  
23 C<PPI::Structure::Constructor> is the class used for anonymous C<ARRAY>
24 reference of C<HASH> reference constructors.
25  
26 =head1 METHODS
27  
28 C<PPI::Structure::Constructor> has no methods beyond those provided by
29 the standard L<PPI::Structure>, L<PPI::Node> and L<PPI::Element> methods.
30  
31 =cut
32  
33 62 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
34 62 ▶use PPI::Structure ();
Subroutine BEGIN: called CC=1 SCAR=0.0
35  
36 62 ▶use vars qw{$VERSION @ISA};
Subroutine BEGIN: called CC=1 SCAR=0.0
37 BEGIN {
38 62 ▶ $VERSION = '1.236';
Subroutine BEGIN: called CC=1 SCAR=0.0
39 62 @ISA = 'PPI::Structure';
40 }
41  
42 62 1;
43  
44 =pod
45  
46 =head1 SUPPORT
47  
48 See the L<support section|PPI/SUPPORT> in the main module.
49  
50 =head1 AUTHOR
51  
52 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
53  
54 =head1 COPYRIGHT
55  
56 Copyright 2001 - 2011 Adam Kennedy.
57  
58 This program is free software; you can redistribute
59 it and/or modify it under the same terms as Perl itself.
60  
61 The full text of the license can be found in the
62 LICENSE file included with this module.
63  
64 =cut
« PPI/Structure/Condition.pm ↑ Summary PPI/Structure/Given.pm »