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