blib/lib/Mason/Moose.pm

filter: Statementstmt 94.7% 36 / 38 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 90.0% 9 / 10 Podpod 0.0% 0 / 1 totaltotal 91.8% 45 / 49 SCAR 0.0
CC
1
Cov
95%
__ANON__
1.3
init_meta
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Mason/Test/Class.pm ↑ Summary blib/lib/Mason/Interp.pm »
1 package Mason::Moose; ## no critic (Moose::RequireMakeImmutable)
2 22 $Mason::Moose::VERSION = '2.23';
3 22 ▶use Moose ();
Subroutine BEGIN: called CC=1 SCAR=0.0
4 22 ▶use MooseX::HasDefaults::RO ();
Subroutine BEGIN: called CC=1 SCAR=0.0
5 22 ▶use MooseX::StrictConstructor ();
Subroutine BEGIN: called CC=1 SCAR=0.0
6 22 ▶use Method::Signatures::Simple ();
Subroutine BEGIN: called CC=1 SCAR=0.0
7 22 ▶use Moose::Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 22 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 22 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 22 Moose::Exporter->setup_import_methods( also => ['Moose'] );
11  
12 sub init_meta {
13 22 ▶ my $class = shift;
Subroutine init_meta: called CC=1 SCAR=0.0
Pod undocumented
14 22 my %params = @_;
15 22 my $for_class = $params{for_class};
16 22 Method::Signatures::Simple->import( into => $for_class );
17 22 Moose->init_meta(@_);
18 22 MooseX::StrictConstructor->import( { into => $for_class } );
19 22 MooseX::HasDefaults::RO->import( { into => $for_class } );
20 {
21 22 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
22 22 ▶ *{ $for_class . '::CLASS' } = sub () { $for_class }; # like CLASS.pm
Subroutine __ANON__: not called CC=1 SCAR=2.6
23 }
24 }
25  
26 22 1;
27  
28 __END__
29  
30 =pod
31  
32 =head1 NAME
33  
34 Mason::Moose - Mason Moose policies
35  
36 =head1 SYNOPSIS
37  
38 # instead of use Moose;
39 use Mason::Moose;
40  
41 =head1 DESCRIPTION
42  
43 Sets certain Moose behaviors for Mason's internal classes. Using this module is
44 equivalent to
45  
46 use CLASS;
47 use Moose;
48 use MooseX::HasDefaults::RO;
49 use MooseX::StrictConstructor;
50 use Method::Signatures::Simple;
51  
52 =head1 SEE ALSO
53  
54 L<Mason|Mason>
55  
56 =head1 AUTHOR
57  
58 Jonathan Swartz <swartz@pobox.com>
59  
60 =head1 COPYRIGHT AND LICENSE
61  
62 This software is copyright (c) 2012 by Jonathan Swartz.
63  
64 This is free software; you can redistribute it and/or modify it under
65 the same terms as the Perl 5 programming language system itself.
66  
67 =cut
« blib/lib/Mason/Test/Class.pm ↑ Summary blib/lib/Mason/Interp.pm »