line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package # hidden from pause |
2
|
|
|
|
|
|
|
App::StaticImageGallery::Base::NeedDir; |
3
|
|
|
|
|
|
|
|
4
|
2
|
|
|
2
|
|
1441
|
use Carp; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
117
|
|
5
|
2
|
|
|
2
|
|
2773
|
use DateTime; |
|
2
|
|
|
|
|
423149
|
|
|
2
|
|
|
|
|
116
|
|
6
|
2
|
|
|
2
|
|
27
|
use parent 'App::StaticImageGallery::Base::Any'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
22
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
0
|
|
|
0
|
1
|
|
my $class = shift; |
10
|
0
|
|
|
|
|
|
my $self = $class->SUPER::new(@_); |
11
|
0
|
|
|
|
|
|
my %args = @_; |
12
|
|
|
|
|
|
|
|
13
|
0
|
0
|
0
|
|
|
|
if ( defined $args{dir} and ref( $args{dir} ) eq 'App::StaticImageGallery::Dir' ) { |
14
|
0
|
|
|
|
|
|
$self->{_dir} = $args{dir}; |
15
|
|
|
|
|
|
|
} else { |
16
|
0
|
|
|
|
|
|
croak "Missing dir or wrong type: " . ref $args{work_dir}; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
0
|
|
|
|
|
|
return $self; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
1
|
|
sub dir { return shift->{_dir}; } |
23
|
0
|
|
|
0
|
1
|
|
sub work_dir { return shift->{_dir}->work_dir; } |
24
|
0
|
|
|
0
|
1
|
|
sub data_dir { return shift->{_dir}->data_dir; } |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
__END__ |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 NAME |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
App::StaticImageGallery::Base::NeedDir |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 VERSION |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
version 0.002 |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 DESCRIPTION |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 SYNOPSIS |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 METHODS |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head2 data_dir |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head2 dir |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head2 new |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head2 work_dir |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 AUTHOR |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
See L<App::StaticImageGallery/AUTHOR> and L<App::StaticImageGallery/CONTRIBUTORS>. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=cut |