line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MouseX::Foreign; |
2
|
29
|
|
|
29
|
|
1396180
|
use 5.008_001; |
|
29
|
|
|
|
|
112
|
|
|
29
|
|
|
|
|
1244
|
|
3
|
29
|
|
|
29
|
|
1223
|
use Mouse::Util; # turns on strict and warnings |
|
29
|
|
|
|
|
13133
|
|
|
29
|
|
|
|
|
191
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '1.000'; |
6
|
|
|
|
|
|
|
|
7
|
29
|
|
|
29
|
|
40609
|
use Mouse::Util::MetaRole; |
|
29
|
|
|
|
|
55004
|
|
|
29
|
|
|
|
|
991
|
|
8
|
29
|
|
|
29
|
|
206
|
use Carp (); |
|
29
|
|
|
|
|
61
|
|
|
29
|
|
|
|
|
3968
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub import { |
11
|
39
|
|
|
39
|
|
8243
|
shift; |
12
|
|
|
|
|
|
|
|
13
|
39
|
|
|
|
|
114
|
my $caller = caller; |
14
|
39
|
50
|
|
|
|
625
|
if(!$caller->can('meta')){ |
15
|
0
|
|
|
|
|
0
|
Carp::croak( |
16
|
|
|
|
|
|
|
"$caller does not have the meta method" |
17
|
|
|
|
|
|
|
. " (did you use Mouse for $caller?)"); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
Mouse::Util::MetaRole::apply_metaroles( |
21
|
39
|
|
|
|
|
256
|
for => $caller, |
22
|
|
|
|
|
|
|
class_metaroles => { |
23
|
|
|
|
|
|
|
class => ['MouseX::Foreign::Meta::Role::Class'], |
24
|
|
|
|
|
|
|
}, |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
|
27
|
39
|
100
|
|
|
|
138252
|
$caller->meta->superclasses(@_) if @_; |
28
|
39
|
|
|
|
|
23326
|
return; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
__END__ |