line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Ordeal::Model::Card; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# vim: ts=3 sts=3 sw=3 et ai : |
4
|
|
|
|
|
|
|
|
5
|
5
|
|
|
5
|
|
3795
|
use 5.020; |
|
5
|
|
|
|
|
34
|
|
6
|
5
|
|
|
5
|
|
25
|
use strict; # redundant, but still useful to document |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
134
|
|
7
|
5
|
|
|
5
|
|
26
|
use warnings; |
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
268
|
|
8
|
|
|
|
|
|
|
{ our $VERSION = '0.003'; } |
9
|
5
|
|
|
5
|
|
32
|
use English qw< -no_match_vars >; |
|
5
|
|
|
|
|
37
|
|
|
5
|
|
|
|
|
42
|
|
10
|
5
|
|
|
5
|
|
1964
|
use Mo qw< default >; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
32
|
|
11
|
|
|
|
|
|
|
|
12
|
5
|
|
|
5
|
|
1111
|
use experimental qw< signatures postderef >; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
27
|
|
13
|
5
|
|
|
5
|
|
718
|
no warnings qw< experimental::signatures experimental::postderef >; |
|
5
|
|
|
|
|
29
|
|
|
5
|
|
|
|
|
568
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
use overload |
16
|
0
|
|
|
0
|
|
0
|
ne => sub { shift->compare_ne(@_) }, |
17
|
0
|
|
|
0
|
|
0
|
bool => sub { return 1 }, |
18
|
5
|
|
|
5
|
|
36
|
fallback => 0; # false but defined, disables Magic Autogeneration |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
69
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
has content_type => (default => undef); |
21
|
|
|
|
|
|
|
has group => (default => ''); |
22
|
|
|
|
|
|
|
has id => (default => undef); |
23
|
|
|
|
|
|
|
has name => (default => ''); |
24
|
|
|
|
|
|
|
|
25
|
0
|
|
|
0
|
1
|
0
|
sub compare_ne ($self, $other, $x) { return $self->id ne $other->id } |
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
26
|
|
|
|
|
|
|
|
27
|
1
|
|
|
1
|
1
|
3350
|
sub data ($self, $data = undef) { |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
3
|
|
28
|
1
|
50
|
|
|
|
5
|
$self->{data} = $data if @_ > 1; |
29
|
1
|
50
|
|
|
|
5
|
$self->{data} = $self->{data}->($self) if ref $self->{data}; |
30
|
1
|
|
|
|
|
248
|
return $self->{data}; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
__END__ |