line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MooseX::SlurpyConstructor::Trait::ApplicationToRole; |
2
|
|
|
|
|
|
|
BEGIN { |
3
|
2
|
|
|
2
|
|
10866
|
$MooseX::SlurpyConstructor::Trait::ApplicationToRole::VERSION = '1.2'; |
4
|
|
|
|
|
|
|
} |
5
|
2
|
|
|
2
|
|
19
|
use Moose::Role; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
42
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
around apply => sub { |
8
|
|
|
|
|
|
|
my $orig = shift; |
9
|
|
|
|
|
|
|
my $self = shift; |
10
|
|
|
|
|
|
|
my ($role1, $role2) = @_; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
$role2 = Moose::Util::MetaRole::apply_metaroles( |
13
|
|
|
|
|
|
|
for => $role2, |
14
|
|
|
|
|
|
|
role_metaroles => { |
15
|
|
|
|
|
|
|
application_to_class => [ |
16
|
|
|
|
|
|
|
'MooseX::SlurpyConstructor::Trait::ApplicationToClass', |
17
|
|
|
|
|
|
|
], |
18
|
|
|
|
|
|
|
application_to_role => [ |
19
|
|
|
|
|
|
|
'MooseX::SlurpyConstructor::Trait::ApplicationToRole', |
20
|
|
|
|
|
|
|
], |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
$self->$orig( $role1, $role2 ); |
25
|
|
|
|
|
|
|
}; |
26
|
|
|
|
|
|
|
|
27
|
2
|
|
|
2
|
|
27383
|
no Moose::Role; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
16
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=pod |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 NAME |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
MooseX::SlurpyConstructor::Trait::ApplicationToRole |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 VERSION |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
version 1.2 |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 AUTHORS |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=over 4 |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=item * |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Mark Morgan <makk384@gmail.com> |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=item * |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Karen Etheridge <ether@cpan.org> |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=back |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
This software is copyright (c) 2011 by Karen Etheridge. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
62
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=cut |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
__END__ |
68
|
|
|
|
|
|
|
|