line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mojo::Snoo::Multireddit; |
2
|
1
|
|
|
1
|
|
5
|
use Moo; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
extends 'Mojo::Snoo::Base'; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
1007
|
use Mojo::Collection; |
|
1
|
|
|
|
|
93167
|
|
|
1
|
|
|
|
|
45
|
|
7
|
1
|
|
|
1
|
|
794
|
use Mojo::Snoo::Subreddit; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
32
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
6
|
use constant FIELD => 'name'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
145
|
|
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
|
1745
|
sub BUILDARGS { shift->SUPER::BUILDARGS(@_ == 1 ? (name => shift) : @_) } |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
# fetch things |
23
|
|
|
|
|
|
|
# create new thing objects |
24
|
|
|
|
|
|
|
# TODO pass params |
25
|
|
|
|
0
|
|
|
sub _build_subreddits { |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |