line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Hub::Base::NoOp; |
2
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
3
|
1
|
|
|
1
|
|
5
|
use Hub qw/:lib/; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
4
|
|
|
|
|
|
|
our ($AUTOLOAD); |
5
|
|
|
|
|
|
|
our $VERSION = '4.00043'; |
6
|
|
|
|
|
|
|
our @EXPORT = qw//; |
7
|
|
|
|
|
|
|
our @EXPORT_OK = qw//; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------ |
10
|
|
|
|
|
|
|
# new - Constructor |
11
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------ |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub new { |
14
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
15
|
0
|
|
0
|
|
|
|
my $class = ref( $self ) || $self; |
16
|
0
|
|
|
|
|
|
my $objkey = shift; |
17
|
0
|
|
|
|
|
|
return bless { objkey => $objkey }, $class; |
18
|
|
|
|
|
|
|
}#new |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------ |
21
|
|
|
|
|
|
|
# AUTOLOAD - Dump error message |
22
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------ |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub AUTOLOAD { |
25
|
0
|
|
|
0
|
|
|
my $self = shift; |
26
|
0
|
|
|
|
|
|
my ($pkg,$func) = ($AUTOLOAD =~ /(.*)::([^:]+)$/); |
27
|
0
|
0
|
|
|
|
|
unless( $self->{'objkey'} eq 'logger' ) { |
28
|
0
|
|
|
|
|
|
my $msg = "Call to undefined object ($self->{'objkey'})->$func"; |
29
|
0
|
|
|
|
|
|
confess $msg; |
30
|
|
|
|
|
|
|
}#unless |
31
|
0
|
|
|
|
|
|
undef; |
32
|
|
|
|
|
|
|
}#AUTOLOAD |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------ |
35
|
|
|
|
|
|
|
# DESTROY - Defining this function prevents it from being searched in AUTOLOAD |
36
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------ |
37
|
|
|
|
|
|
|
|
38
|
0
|
|
|
0
|
|
|
sub DESTROY { |
39
|
|
|
|
|
|
|
}#DESTROY |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |