line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id: Rule.pm,v 1.6 2007/08/14 15:45:51 ajk Exp $ |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
35
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
39
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
package Data::Passphrase::Rule; { |
7
|
1
|
|
|
1
|
|
5
|
use Object::InsideOut; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# object attributes |
10
|
|
|
|
|
|
|
my @code :Field( Std => 'code', Type => 'numeric' ); |
11
|
|
|
|
|
|
|
my @debug :Field( Std => 'debug', Type => 'numeric' ); |
12
|
|
|
|
|
|
|
my @disabled :Field( Std => 'disabled', Type => 'numeric' ); |
13
|
|
|
|
|
|
|
my @message :Field( Std => 'message', ); |
14
|
|
|
|
|
|
|
my @score :Field( Std => 'score', ); |
15
|
|
|
|
|
|
|
my @test :Field( Std => 'test', Type => 'CODE' ); |
16
|
|
|
|
|
|
|
my @validate :Field( Std => 'validate', Type => 'CODE' ); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
my %init_args :InitArgs = ( |
19
|
|
|
|
|
|
|
code => { Field => \@code, Type => 'numeric' }, |
20
|
|
|
|
|
|
|
debug => { Def => 0, Field => \@debug, Type => 'numeric' }, |
21
|
|
|
|
|
|
|
disabled => { Def => 0, Field => \@disabled, Type => 'numeric' }, |
22
|
|
|
|
|
|
|
message => { Field => \@message, }, |
23
|
|
|
|
|
|
|
score => { Field => \@score, }, |
24
|
|
|
|
|
|
|
test => { Field => \@test, }, |
25
|
|
|
|
|
|
|
validate => { Field => \@validate, Type => 'CODE' }, |
26
|
|
|
|
|
|
|
); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
__END__ |