line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bootylicious::ArticleByTagIterator; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
486
|
use strict; |
|
5
|
|
|
|
|
7
|
|
|
5
|
|
|
|
|
107
|
|
4
|
5
|
|
|
5
|
|
12
|
use warnings; |
|
5
|
|
|
|
|
6
|
|
|
5
|
|
|
|
|
96
|
|
5
|
|
|
|
|
|
|
|
6
|
5
|
|
|
5
|
|
15
|
use base 'Bootylicious::Decorator'; |
|
5
|
|
|
|
|
5
|
|
|
5
|
|
|
|
|
561
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
__PACKAGE__->attr('tag'); |
9
|
|
|
|
|
|
|
|
10
|
5
|
|
|
5
|
|
304
|
use Bootylicious::IteratorSearchable; |
|
5
|
|
|
|
|
6
|
|
|
5
|
|
|
|
|
24
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new { |
13
|
5
|
|
|
5
|
1
|
23
|
my $self = shift->SUPER::new(@_); |
14
|
|
|
|
|
|
|
|
15
|
5
|
|
|
|
|
9
|
return $self->build; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub build { |
19
|
5
|
|
|
5
|
0
|
6
|
my $self = shift; |
20
|
|
|
|
|
|
|
|
21
|
5
|
|
|
|
|
10
|
my $tag = $self->tag; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
return Bootylicious::IteratorSearchable->new($self->object)->find_all( |
24
|
|
|
|
|
|
|
sub { |
25
|
9
|
|
|
9
|
|
23
|
my ($iterator, $elem) = @_; |
26
|
|
|
|
|
|
|
|
27
|
9
|
100
|
|
|
|
8
|
return unless scalar grep { $_ eq $tag } @{$elem->tags}; |
|
19
|
|
|
|
|
61
|
|
|
9
|
|
|
|
|
18
|
|
28
|
|
|
|
|
|
|
|
29
|
5
|
|
|
|
|
16
|
return $elem; |
30
|
|
|
|
|
|
|
} |
31
|
5
|
|
|
|
|
18
|
); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |