line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Kwiki::Pages::Perldoc; |
2
|
1
|
|
|
1
|
|
29762
|
use Kwiki::Pages -Base; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
use Kwiki::Installer -base; |
4
|
|
|
|
|
|
|
our $VERSION = '0.12'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
const page_class => 'Kwiki::Page::Perldoc'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub init { |
9
|
|
|
|
|
|
|
super; |
10
|
|
|
|
|
|
|
$self->hub->config->add_file('pages.yaml'); |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub all { |
14
|
|
|
|
|
|
|
map { |
15
|
|
|
|
|
|
|
$self->new_page($_) |
16
|
|
|
|
|
|
|
} grep { |
17
|
|
|
|
|
|
|
s/\.pod$//; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
map { |
20
|
|
|
|
|
|
|
$_->filename; |
21
|
|
|
|
|
|
|
} io($self->current->database_directory)->all_files; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub all_ids_newest_first { |
25
|
|
|
|
|
|
|
my $path = $self->current->database_directory; |
26
|
|
|
|
|
|
|
grep { |
27
|
|
|
|
|
|
|
chomp; |
28
|
|
|
|
|
|
|
s/\.pod$//; |
29
|
|
|
|
|
|
|
} `ls -1t $path`; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
package Kwiki::Page::Perldoc; |
34
|
|
|
|
|
|
|
use base 'Kwiki::Page'; |
35
|
|
|
|
|
|
|
use Kwiki ':char_classes'; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub file_path { |
38
|
|
|
|
|
|
|
join '/', $self->database_directory, $self->id . '.pod'; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
package Kwiki::Pages::Perldoc; |
42
|
|
|
|
|
|
|
__DATA__ |