line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# $Id: Plugin.pm,v 1.3 2006/11/12 09:43:38 6-o Exp $ |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
package Text::HikiDoc::Plugin; |
5
|
|
|
|
|
|
|
|
6
|
6
|
|
|
6
|
|
1731
|
use strict; |
|
6
|
|
|
|
|
7
|
|
|
6
|
|
|
|
|
126
|
|
7
|
6
|
|
|
6
|
|
16
|
use warnings; |
|
6
|
|
|
|
|
6
|
|
|
6
|
|
|
|
|
470
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
29
|
|
|
29
|
0
|
33
|
my $class = shift; |
11
|
29
|
|
|
|
|
18
|
my $obj = shift; |
12
|
29
|
|
|
|
|
24
|
my $plugin_type = shift; |
13
|
|
|
|
|
|
|
|
14
|
29
|
|
|
|
|
152
|
my $self = bless { |
15
|
|
|
|
|
|
|
%$obj, |
16
|
|
|
|
|
|
|
PLUGIN_TYPE => $plugin_type, |
17
|
|
|
|
|
|
|
} , $class; |
18
|
|
|
|
|
|
|
|
19
|
29
|
|
|
|
|
90
|
return $self; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub to_html { |
23
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
24
|
0
|
|
|
|
|
|
my $str = shift; |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
return $str; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
#sub DESTROY { |
29
|
|
|
|
|
|
|
# my $self = shift; |
30
|
|
|
|
|
|
|
# print STDERR $self,"\t",$self->{PLUGIN_TYPE},"\n"; |
31
|
|
|
|
|
|
|
#} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
__END__ |