line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bootylicious::CommentIteratorLoader; |
2
|
|
|
|
|
|
|
|
3
|
13
|
|
|
13
|
|
71
|
use strict; |
|
13
|
|
|
|
|
26
|
|
|
13
|
|
|
|
|
287
|
|
4
|
13
|
|
|
13
|
|
53
|
use warnings; |
|
13
|
|
|
|
|
24
|
|
|
13
|
|
|
|
|
262
|
|
5
|
|
|
|
|
|
|
|
6
|
13
|
|
|
13
|
|
52
|
use base 'Bootylicious::FileIteratorLoader'; |
|
13
|
|
|
|
|
32
|
|
|
13
|
|
|
|
|
3231
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
__PACKAGE__->attr(filter => sub {qr/\.comment-(\d+)$/}); |
9
|
|
|
|
|
|
|
__PACKAGE__->attr(element_class => 'Bootylicious::Comment'); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub load { |
12
|
18
|
|
|
18
|
0
|
106
|
my $iterator = shift->SUPER::load(@_); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
$iterator->elements( |
15
|
16
|
|
|
|
|
106
|
[ sort { $a->created->epoch <=> $b->created->epoch } |
16
|
18
|
|
|
|
|
33
|
@{$iterator->elements} |
|
18
|
|
|
|
|
48
|
|
17
|
|
|
|
|
|
|
] |
18
|
|
|
|
|
|
|
); |
19
|
18
|
|
|
|
|
192
|
$iterator->rewind; |
20
|
|
|
|
|
|
|
|
21
|
18
|
|
|
|
|
69
|
return $iterator; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |