line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package List::Objects::WithUtils::Hash::Inflated; |
2
|
|
|
|
|
|
|
$List::Objects::WithUtils::Hash::Inflated::VERSION = '2.028002'; |
3
|
2
|
|
|
2
|
|
817
|
use strictures 2; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
62
|
|
4
|
2
|
|
|
2
|
|
315
|
use Carp (); |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
21
|
|
5
|
2
|
|
|
2
|
|
5
|
use Scalar::Util (); |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
517
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub new { |
8
|
3
|
|
|
3
|
0
|
16
|
bless +{ @_[1 .. $#_] }, $_[0] |
9
|
|
|
|
|
|
|
} |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
0
|
283
|
sub DEFLATE { %{ $_[0] } } |
|
1
|
|
|
|
|
4
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
our $AUTOLOAD; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub can { |
16
|
7
|
|
|
7
|
0
|
9
|
my ($self, $method) = @_; |
17
|
7
|
100
|
|
|
|
34
|
if (my $sub = $self->SUPER::can($method)) { |
18
|
1
|
|
|
|
|
2
|
return $sub |
19
|
|
|
|
|
|
|
} |
20
|
6
|
100
|
|
|
|
55
|
return unless exists $self->{$method}; |
21
|
|
|
|
|
|
|
sub { |
22
|
1
|
|
|
1
|
|
184
|
my ($self) = @_; |
23
|
1
|
50
|
|
|
|
5
|
if (my $sub = $self->SUPER::can($method)) { |
24
|
0
|
|
|
|
|
0
|
goto $sub |
25
|
|
|
|
|
|
|
} |
26
|
1
|
|
|
|
|
1
|
$AUTOLOAD = $method; |
27
|
1
|
|
|
|
|
2
|
goto &AUTOLOAD |
28
|
|
|
|
|
|
|
} |
29
|
1
|
|
|
|
|
3
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub AUTOLOAD { |
32
|
8
|
|
|
8
|
|
826
|
my $self = shift; |
33
|
8
|
|
|
|
|
31
|
( my $method = $AUTOLOAD ) =~ s/.*:://; |
34
|
8
|
100
|
|
|
|
123
|
Scalar::Util::blessed($self) |
35
|
|
|
|
|
|
|
or Carp::confess "Not a class method: '$method'"; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Carp::confess "Can't locate object method '$method'" |
38
|
7
|
100
|
|
|
|
137
|
unless exists $self->{$method}; |
39
|
6
|
100
|
|
|
|
81
|
Carp::confess "Accessor '$method' is read-only" |
40
|
|
|
|
|
|
|
if @_; |
41
|
|
|
|
|
|
|
|
42
|
5
|
|
|
|
|
20
|
$self->{$method} |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
0
|
|
|
sub DESTROY {} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
1; |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=pod |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=for Pod::Coverage new can AUTOLOAD DEFLATE |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=cut |