line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id: /mirror/perl/HTML-RobotsMETA/trunk/lib/HTML/RobotsMETA/Rules.pm 3528 2007-10-16T09:36:47.480863Z daisuke $ |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package HTML::RobotsMETA::Rules; |
4
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
89
|
|
5
|
2
|
|
|
2
|
|
13
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
896
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub new |
8
|
|
|
|
|
|
|
{ |
9
|
4
|
|
|
4
|
1
|
7
|
my $class = shift; |
10
|
4
|
|
|
|
|
10
|
my %args = @_; |
11
|
4
|
|
|
|
|
30
|
my $self = bless { directives => \%args }, $class; |
12
|
4
|
|
|
|
|
25
|
return $self; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub can_index |
16
|
|
|
|
|
|
|
{ |
17
|
4
|
|
|
4
|
1
|
9
|
my $self = shift; |
18
|
4
|
|
|
|
|
8
|
my $dir = $self->{directives}; |
19
|
4
|
|
100
|
|
|
31
|
return ! $dir->{noindex} && ! $dir->{none}; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub can_follow |
23
|
|
|
|
|
|
|
{ |
24
|
4
|
|
|
4
|
1
|
2127
|
my $self = shift; |
25
|
4
|
|
|
|
|
9
|
my $dir = $self->{directives}; |
26
|
4
|
|
100
|
|
|
38
|
return ! $dir->{nofollow} && ! $dir->{none}; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub can_archive |
30
|
|
|
|
|
|
|
{ |
31
|
4
|
|
|
4
|
1
|
8
|
my $self = shift; |
32
|
4
|
|
|
|
|
7
|
my $dir = $self->{directives}; |
33
|
4
|
|
66
|
|
|
35
|
return ! $dir->{noarchive} && ! $dir->{none}; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub can_serve |
37
|
|
|
|
|
|
|
{ |
38
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
39
|
0
|
|
|
|
|
|
my $dir = $self->{directives}; |
40
|
0
|
|
0
|
|
|
|
return ! $dir->{serve} && ! $dir->{none}; |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub can_imageindex |
44
|
|
|
|
|
|
|
{ |
45
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
46
|
0
|
|
|
|
|
|
my $dir = $self->{directives}; |
47
|
0
|
|
0
|
|
|
|
return ! $dir->{noimageindex} && ! $dir->{none}; |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
sub can_imageclick |
51
|
|
|
|
|
|
|
{ |
52
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
53
|
0
|
|
|
|
|
|
my $dir = $self->{directives}; |
54
|
0
|
|
0
|
|
|
|
return ! $dir->{noimageclick} && ! $dir->{none}; |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
1; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
__END__ |