line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# This file is part of MooseX-Attribute-Dependent |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# This software is Copyright (c) 2011 by Moritz Onken. |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# This is free software, licensed under: |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# The (three-clause) BSD License |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
package MooseX::Attribute::Dependent::Meta::Role::ApplicationToClass; |
11
|
|
|
|
|
|
|
{ |
12
|
|
|
|
|
|
|
$MooseX::Attribute::Dependent::Meta::Role::ApplicationToClass::VERSION = '1.1.2'; |
13
|
|
|
|
|
|
|
} |
14
|
3
|
|
|
3
|
|
1779
|
use Moose::Role; |
|
3
|
|
|
|
|
16011
|
|
|
3
|
|
|
|
|
27
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
around apply => sub { |
17
|
|
|
|
|
|
|
my $orig = shift; |
18
|
|
|
|
|
|
|
my $self = shift; |
19
|
|
|
|
|
|
|
my $role = shift; |
20
|
|
|
|
|
|
|
my $class = shift; |
21
|
|
|
|
|
|
|
$class = |
22
|
|
|
|
|
|
|
Moose::Util::MetaRole::apply_metaroles( |
23
|
|
|
|
|
|
|
for => $class, |
24
|
|
|
|
|
|
|
class_metaroles => { |
25
|
|
|
|
|
|
|
(Moose->VERSION >= 1.9900 |
26
|
|
|
|
|
|
|
? (class => |
27
|
|
|
|
|
|
|
['MooseX::Attribute::Dependent::Meta::Role::Class']) |
28
|
|
|
|
|
|
|
: (constructor => |
29
|
|
|
|
|
|
|
['MooseX::Attribute::Dependent::Meta::Role::Method::Constructor'])), |
30
|
|
|
|
|
|
|
}); |
31
|
|
|
|
|
|
|
$self->$orig( $role, $class ); |
32
|
|
|
|
|
|
|
}; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |
37
|
|
|
|
|
|
|
=pod |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 NAME |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
MooseX::Attribute::Dependent::Meta::Role::ApplicationToClass |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 VERSION |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
version 1.1.2 |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 AUTHOR |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Moritz Onken |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
This software is Copyright (c) 2011 by Moritz Onken. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
This is free software, licensed under: |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
The (three-clause) BSD License |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=cut |
60
|
|
|
|
|
|
|
|