line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
7
|
|
|
7
|
|
143
|
use 5.010001; |
|
7
|
|
|
|
|
31
|
|
2
|
7
|
|
|
7
|
|
43
|
use strict; |
|
7
|
|
|
|
|
19
|
|
|
7
|
|
|
|
|
235
|
|
3
|
7
|
|
|
7
|
|
35
|
use warnings; |
|
7
|
|
|
|
|
17
|
|
|
7
|
|
|
|
|
406
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
use Mite::Miteception -all; |
6
|
7
|
|
|
7
|
|
47
|
extends qw(Mite::Role); |
|
7
|
|
|
|
|
17
|
|
|
7
|
|
|
|
|
57
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TOBYINK'; |
9
|
|
|
|
|
|
|
our $VERSION = '0.011000'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
my ( $class, $rolename, %args ) = @_; |
12
|
|
|
|
|
|
|
|
13
|
2
|
|
|
2
|
0
|
8
|
return $class->new( |
14
|
|
|
|
|
|
|
%args, |
15
|
|
|
|
|
|
|
name => $rolename, |
16
|
|
|
|
|
|
|
attributes => {}, |
17
|
|
|
|
|
|
|
roles => [], |
18
|
|
|
|
|
|
|
required_methods => ( $Role::Tiny::INFO{$rolename}{requires} ||= [] ), |
19
|
|
|
|
|
|
|
); |
20
|
2
|
|
100
|
|
|
34
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
my $self = shift; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
my $rt_methods = 'Role::Tiny'->_concrete_methods_of( $self->name ); |
25
|
2
|
|
|
2
|
0
|
5
|
my %mr_methods = map { |
26
|
|
|
|
|
|
|
$_ => sprintf '%s::%s', $self->name, $_; |
27
|
2
|
|
|
|
|
19
|
} keys %$rt_methods; |
28
|
|
|
|
|
|
|
|
29
|
2
|
|
|
|
|
318
|
return \%mr_methods; |
|
3
|
|
|
|
|
12
|
|
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
2
|
|
|
|
|
9
|
1; |