line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Class::MixinFactory::HasAFactory; |
2
|
|
|
|
|
|
|
|
3
|
8
|
|
|
8
|
|
46
|
use Class::MixinFactory::NEXT; |
|
8
|
|
|
|
|
13
|
|
|
8
|
|
|
|
|
659
|
|
4
|
|
|
|
|
|
|
@ISA = 'Class::MixinFactory::NEXT'; |
5
|
|
|
|
|
|
|
|
6
|
8
|
|
|
8
|
|
38
|
use strict; |
|
8
|
|
|
|
|
19
|
|
|
8
|
|
|
|
|
262
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
######################################################################## |
9
|
|
|
|
|
|
|
|
10
|
8
|
|
|
8
|
|
40
|
use Class::MixinFactory::InsideOutAttr 'mixin_factory_ref'; |
|
8
|
|
|
|
|
14
|
|
|
8
|
|
|
|
|
51
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub mixin_factory { |
13
|
27
|
|
|
27
|
1
|
55
|
my $self = shift; |
14
|
27
|
|
33
|
|
|
116
|
my $base_class = ref($self) || $self; |
15
|
27
|
100
|
|
|
|
92
|
$base_class->mixin_factory_ref() or $base_class->mixin_factory_ref( |
16
|
|
|
|
|
|
|
Class::MixinFactory::Factory->new( base_class => $base_class ) |
17
|
|
|
|
|
|
|
) |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub class { |
21
|
25
|
|
|
25
|
1
|
4808
|
(shift)->mixin_factory()->class( @_ ) |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
######################################################################## |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |