line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
# $Id: Meta.pm,v 1.2 2003/11/29 14:48:37 nothingmuch Exp $ |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Object::Meta::Plugin::Useful::Meta; # a plugin base class which subclasses Object::Meta::Plugin::Host - a meta plugin |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
5430
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
25
|
|
7
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
22
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
5
|
use base qw/Object::Meta::Plugin::Host Object::Meta::Plugin::Useful/; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
163
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub new { |
12
|
0
|
|
|
0
|
0
|
|
my $pkg = shift; |
13
|
|
|
|
|
|
|
|
14
|
0
|
|
|
|
|
|
my $self = $pkg->SUPER::new(); # host; |
15
|
|
|
|
|
|
|
|
16
|
0
|
|
|
|
|
|
$self->{exported} = undef; |
17
|
0
|
|
|
|
|
|
$self->{exports} = []; |
18
|
|
|
|
|
|
|
|
19
|
0
|
|
|
|
|
|
$self; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub exports { |
23
|
0
|
|
|
0
|
0
|
|
keys %{ $_[0]->methods }; |
|
0
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; # Keep your mother happy. |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |