line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mandel::Model::Field; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Mandel::Model::Field - Field meta object |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 DESCRIPTION |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
This class defines meta data for a L object. |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=cut |
12
|
|
|
|
|
|
|
|
13
|
26
|
|
|
26
|
|
131
|
use Mojo::Base -base; |
|
26
|
|
|
|
|
46
|
|
|
26
|
|
|
|
|
185
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head2 builder |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
Returns a code-ref or method name for building the default value for this |
20
|
|
|
|
|
|
|
field or undef unless a builder was not defined. |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head2 name |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Returns the name. |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head2 type_constraint |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Returns the type specified as "isa" in the constructor. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
31
|
|
|
|
|
|
|
|
32
|
13
|
|
|
13
|
1
|
49
|
sub builder { shift->{builder} } |
33
|
20
|
|
|
20
|
1
|
87
|
sub name { shift->{name} } |
34
|
5
|
|
|
5
|
1
|
21
|
sub type_constraint { shift->{isa} } |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 AUTHOR |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Jan Henning Thorsen - C |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=cut |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |