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
|
|
1820
|
use strict; |
|
6
|
|
|
|
|
6
|
|
|
6
|
|
|
|
|
146
|
|
7
|
6
|
|
|
6
|
|
23
|
use warnings; |
|
6
|
|
|
|
|
6
|
|
|
6
|
|
|
|
|
516
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
29
|
|
|
29
|
0
|
39
|
my $class = shift; |
11
|
29
|
|
|
|
|
23
|
my $obj = shift; |
12
|
29
|
|
|
|
|
26
|
my $plugin_type = shift; |
13
|
|
|
|
|
|
|
|
14
|
29
|
|
|
|
|
162
|
my $self = bless { |
15
|
|
|
|
|
|
|
%$obj, |
16
|
|
|
|
|
|
|
PLUGIN_TYPE => $plugin_type, |
17
|
|
|
|
|
|
|
} , $class; |
18
|
|
|
|
|
|
|
|
19
|
29
|
|
|
|
|
88
|
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__ |