line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package exact::role; |
2
|
|
|
|
|
|
|
# ABSTRACT: Simple role interface extension for exact |
3
|
|
|
|
|
|
|
|
4
|
7
|
|
|
7
|
|
553098
|
use 5.014; |
|
7
|
|
|
|
|
55
|
|
5
|
7
|
|
|
7
|
|
370
|
use exact; |
|
7
|
|
|
|
|
12
|
|
|
7
|
|
|
|
|
53
|
|
6
|
7
|
|
|
7
|
|
5016
|
use Role::Tiny (); |
|
7
|
|
|
|
|
9215
|
|
|
7
|
|
|
|
|
2000
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '1.17'; # VERSION |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub import { |
11
|
10
|
|
|
10
|
|
3702
|
my ( $self, $caller ) = @_; |
12
|
10
|
|
66
|
|
|
48
|
$caller //= caller(); |
13
|
|
|
|
|
|
|
|
14
|
6
|
|
|
6
|
|
13
|
eval qq{ |
|
6
|
|
|
6
|
|
31
|
|
|
6
|
|
|
6
|
|
1173
|
|
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
31
|
|
|
6
|
|
|
|
|
878
|
|
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
983
|
|
|
10
|
|
|
|
|
1122
|
|
15
|
|
|
|
|
|
|
package $caller { |
16
|
|
|
|
|
|
|
use Role::Tiny; |
17
|
|
|
|
|
|
|
use exact 'class', 'noautoclean'; |
18
|
|
|
|
|
|
|
no feature 'class'; |
19
|
|
|
|
|
|
|
}; |
20
|
|
|
|
|
|
|
}; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub does_role { |
24
|
3
|
|
|
3
|
1
|
539
|
Role::Tiny::does_role(@_); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub apply_roles_to_package { |
28
|
2
|
|
|
2
|
1
|
1576
|
shift; |
29
|
2
|
|
|
|
|
143
|
Role::Tiny->apply_roles_to_package(@_); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub apply_roles_to_object { |
33
|
2
|
|
|
1
|
1
|
1338
|
shift; |
34
|
2
|
|
|
|
|
150
|
Role::Tiny->apply_roles_to_object(@_); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub create_class_with_roles { |
38
|
1
|
|
|
1
|
1
|
1741
|
shift; |
39
|
1
|
|
|
|
|
5
|
Role::Tiny->create_class_with_roles(@_); |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub is_role { |
43
|
3
|
|
|
3
|
1
|
1971
|
shift; |
44
|
3
|
|
|
|
|
10
|
Role::Tiny->is_role(@_); |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
1; |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
__END__ |