line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bootylicious::Decorator; |
2
|
|
|
|
|
|
|
|
3
|
16
|
|
|
16
|
|
71
|
use strict; |
|
16
|
|
|
|
|
17
|
|
|
16
|
|
|
|
|
347
|
|
4
|
16
|
|
|
16
|
|
85
|
use warnings; |
|
16
|
|
|
|
|
16
|
|
|
16
|
|
|
|
|
302
|
|
5
|
|
|
|
|
|
|
|
6
|
16
|
|
|
16
|
|
48
|
use base 'Mojo::Base'; |
|
16
|
|
|
|
|
14
|
|
|
16
|
|
|
|
|
3552
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
__PACKAGE__->attr('object'); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new { |
11
|
53
|
|
|
53
|
1
|
993
|
my $class = shift; |
12
|
53
|
|
|
|
|
55
|
my $object = shift; |
13
|
|
|
|
|
|
|
|
14
|
53
|
|
|
|
|
137
|
my $self = $class->SUPER::new(@_); |
15
|
|
|
|
|
|
|
|
16
|
53
|
|
|
|
|
308
|
$self->object($object); |
17
|
|
|
|
|
|
|
|
18
|
53
|
|
|
|
|
307
|
return $self; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
our $AUTOLOAD; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub AUTOLOAD { |
24
|
132
|
|
|
132
|
|
9361
|
my $self = shift; |
25
|
|
|
|
|
|
|
|
26
|
132
|
|
|
|
|
129
|
my $method = $AUTOLOAD; |
27
|
|
|
|
|
|
|
|
28
|
132
|
50
|
|
|
|
419
|
return if $method =~ /^[A-Z]+?$/; |
29
|
132
|
50
|
|
|
|
195
|
return if $method =~ /^_/; |
30
|
132
|
50
|
|
|
|
195
|
return if $method =~ /(?:\:*?)DESTROY$/; |
31
|
|
|
|
|
|
|
|
32
|
132
|
|
|
|
|
277
|
$method = (split '::' => $method)[-1]; |
33
|
|
|
|
|
|
|
|
34
|
132
|
|
|
|
|
251
|
return $self->object->$method(@_); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |