| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Bot::Cobalt; |
|
2
|
|
|
|
|
|
|
$Bot::Cobalt::VERSION = '0.021003'; |
|
3
|
8
|
|
|
8
|
|
776
|
use strictures 2; |
|
|
8
|
|
|
|
|
107
|
|
|
|
8
|
|
|
|
|
221
|
|
|
4
|
8
|
|
|
8
|
|
970
|
use Carp; |
|
|
8
|
|
|
|
|
11
|
|
|
|
8
|
|
|
|
|
390
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
8
|
|
|
8
|
|
2278
|
use Import::Into; |
|
|
8
|
|
|
|
|
8615
|
|
|
|
8
|
|
|
|
|
166
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
8
|
|
|
8
|
|
2873
|
use Bot::Cobalt::Core::Sugar (); |
|
|
8
|
|
|
|
|
13
|
|
|
|
8
|
|
|
|
|
957
|
|
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub import { |
|
11
|
42
|
|
|
42
|
|
415
|
Bot::Cobalt::Core::Sugar->import::into(scalar caller, @_[1 .. $#_]) |
|
12
|
|
|
|
|
|
|
} |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub instance { |
|
15
|
0
|
|
|
0
|
1
|
|
require Bot::Cobalt::Core; |
|
16
|
0
|
|
|
|
|
|
shift; |
|
17
|
0
|
0
|
|
|
|
|
if (@_) { |
|
18
|
|
|
|
|
|
|
## Someone tried to create a fresh instance, but they really |
|
19
|
|
|
|
|
|
|
## wanted a Bot::Cobalt::Core. |
|
20
|
|
|
|
|
|
|
## Behavior may change. |
|
21
|
0
|
|
|
|
|
|
return Bot::Cobalt::Core->instance(@_) |
|
22
|
|
|
|
|
|
|
} |
|
23
|
|
|
|
|
|
|
|
|
24
|
0
|
0
|
|
|
|
|
unless (Bot::Cobalt::Core->has_instance) { |
|
25
|
0
|
|
|
|
|
|
carp "Tried to retrieve instance but no active Bot::Cobalt::Core found"; |
|
26
|
|
|
|
|
|
|
return |
|
27
|
0
|
|
|
|
|
|
} |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
Bot::Cobalt::Core->instance |
|
30
|
0
|
|
|
|
|
|
} |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub new { |
|
33
|
0
|
|
|
0
|
1
|
|
croak "Bot::Cobalt is a stub; it cannot be constructed.\n" |
|
34
|
|
|
|
|
|
|
. "See the perldoc for Bot::Cobalt::Core"; |
|
35
|
|
|
|
|
|
|
} |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
|
38
|
|
|
|
|
|
|
__END__ |