line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Config::MethodProxy; |
2
|
1
|
|
|
1
|
|
175462
|
use 5.008001; |
|
1
|
|
|
|
|
7
|
|
3
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
16
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.04'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=encoding utf8 |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 NAME |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
Config::MethodProxy - A backwards compatibility shim for Data::MethodProxy. |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 DESCRIPTION |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
This module's distribution has been renamed to C and this |
16
|
|
|
|
|
|
|
module itself has been turned into a shell of a shim over L. |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
Use L directly, not this module. |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
This module will be removed once a reasonable amount of time has passed and |
21
|
|
|
|
|
|
|
any reverse dependencies have gone away or deamed ignorable. |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=cut |
24
|
|
|
|
|
|
|
|
25
|
1
|
|
|
1
|
|
321
|
use Data::MethodProxy; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
28
|
|
26
|
1
|
|
|
1
|
|
7
|
use Exporter qw( import ); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
169
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
our @EXPORT = qw( |
29
|
|
|
|
|
|
|
apply_method_proxies |
30
|
|
|
|
|
|
|
); |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
our @EXPORT_OK = qw( |
33
|
|
|
|
|
|
|
apply_method_proxies |
34
|
|
|
|
|
|
|
is_method_proxy |
35
|
|
|
|
|
|
|
call_method_proxy |
36
|
|
|
|
|
|
|
); |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
our %EXPORT_TAGS = ('all' => \@EXPORT_OK); |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
my $mproxy = Data::MethodProxy->new(); |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 FUNCTIONS |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Only the L function is exported by default. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head2 apply_method_proxies |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
This calls L. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=cut |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
sub apply_method_proxies { |
53
|
2
|
|
|
2
|
1
|
1054
|
my ($data) = @_; |
54
|
2
|
|
|
|
|
5
|
local $Carp::Internal{ (__PACKAGE__) } = 1; |
55
|
2
|
|
|
|
|
7
|
return $mproxy->render( $data ); |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head2 is_method_proxy |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
This calls L. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=cut |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
sub is_method_proxy { |
65
|
2
|
|
|
2
|
1
|
88
|
my ($proxy) = @_; |
66
|
2
|
|
|
|
|
11
|
return $mproxy->is_valid( $proxy ); |
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head2 call_method_proxy |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
This calls L. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=cut |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
sub call_method_proxy { |
76
|
2
|
|
|
2
|
1
|
352
|
my ($proxy) = @_; |
77
|
2
|
|
|
|
|
5
|
local $Carp::Internal{ (__PACKAGE__) } = 1; |
78
|
2
|
|
|
|
|
6
|
return $mproxy->call( $proxy ); |
79
|
|
|
|
|
|
|
} |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
1; |
82
|
|
|
|
|
|
|
__END__ |