| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Mojo::Snoo::Multireddit; |
|
2
|
1
|
|
|
1
|
|
4
|
use Moo; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
extends 'Mojo::Snoo::Base'; |
|
5
|
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
665
|
use Mojo::Collection; |
|
|
1
|
|
|
|
|
59072
|
|
|
|
1
|
|
|
|
|
39
|
|
|
7
|
1
|
|
|
1
|
|
433
|
use Mojo::Snoo::Subreddit; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
40
|
|
|
8
|
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
4
|
use constant FIELD => 'name'; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
112
|
|
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has name => ( |
|
12
|
|
|
|
|
|
|
is => 'ro', |
|
13
|
|
|
|
|
|
|
isa => sub { |
|
14
|
|
|
|
|
|
|
die "Multireddit needs a name!" unless $_[0]; |
|
15
|
|
|
|
|
|
|
}, |
|
16
|
|
|
|
|
|
|
required => 1 |
|
17
|
|
|
|
|
|
|
); |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
# let the user call the constructor using new($multi) or new(name => $multi) |
|
20
|
1
|
50
|
|
1
|
0
|
1247
|
sub BUILDARGS { shift->SUPER::BUILDARGS(@_ == 1 ? (name => shift) : @_) } |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
# fetch things |
|
23
|
|
|
|
|
|
|
# create new thing objects |
|
24
|
|
|
|
|
|
|
# TODO pass params |
|
25
|
0
|
|
|
0
|
|
|
sub _build_subreddits { |
|
26
|
|
|
|
|
|
|
} |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |