line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mason::Moose; ## no critic (Moose::RequireMakeImmutable) |
2
|
|
|
|
|
|
|
$Mason::Moose::VERSION = '2.23'; |
3
|
20
|
|
|
20
|
|
10970
|
use Moose (); |
|
20
|
|
|
|
|
8026131
|
|
|
20
|
|
|
|
|
672
|
|
4
|
20
|
|
|
20
|
|
12242
|
use MooseX::HasDefaults::RO (); |
|
20
|
|
|
|
|
234772
|
|
|
20
|
|
|
|
|
639
|
|
5
|
20
|
|
|
20
|
|
11460
|
use MooseX::StrictConstructor (); |
|
20
|
|
|
|
|
313314
|
|
|
20
|
|
|
|
|
567
|
|
6
|
20
|
|
|
20
|
|
12129
|
use Method::Signatures::Simple (); |
|
20
|
|
|
|
|
173471
|
|
|
20
|
|
|
|
|
497
|
|
7
|
20
|
|
|
20
|
|
155
|
use Moose::Exporter; |
|
20
|
|
|
|
|
34
|
|
|
20
|
|
|
|
|
188
|
|
8
|
20
|
|
|
20
|
|
776
|
use strict; |
|
20
|
|
|
|
|
33
|
|
|
20
|
|
|
|
|
461
|
|
9
|
20
|
|
|
20
|
|
77
|
use warnings; |
|
20
|
|
|
|
|
27
|
|
|
20
|
|
|
|
|
2258
|
|
10
|
|
|
|
|
|
|
Moose::Exporter->setup_import_methods( also => ['Moose'] ); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub init_meta { |
13
|
157
|
|
|
157
|
0
|
18800
|
my $class = shift; |
14
|
157
|
|
|
|
|
717
|
my %params = @_; |
15
|
157
|
|
|
|
|
359
|
my $for_class = $params{for_class}; |
16
|
157
|
|
|
|
|
1334
|
Method::Signatures::Simple->import( into => $for_class ); |
17
|
157
|
|
|
|
|
66662
|
Moose->init_meta(@_); |
18
|
157
|
|
|
|
|
674011
|
MooseX::StrictConstructor->import( { into => $for_class } ); |
19
|
157
|
|
|
|
|
529274
|
MooseX::HasDefaults::RO->import( { into => $for_class } ); |
20
|
|
|
|
|
|
|
{ |
21
|
20
|
|
|
20
|
|
88
|
no strict 'refs'; |
|
20
|
|
|
|
|
34
|
|
|
20
|
|
|
|
|
1286
|
|
|
157
|
|
|
|
|
744680
|
|
22
|
157
|
|
|
0
|
|
1749
|
*{ $for_class . '::CLASS' } = sub () { $for_class }; # like CLASS.pm |
|
157
|
|
|
|
|
1261
|
|
|
0
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
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 |