| 1 | package Mandel::Model::Field; | ||
| 2 | 26 | ▶ | use Mojo::Base -base; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 13 | ▶ | sub builder { shift->{builder} } |
|
Subroutine
builder: called CC=1 SCAR=0.0
Pod
documented
| |||
| 5 | 20 | ▶ | sub name { shift->{name} } |
|
Subroutine
name: called CC=1 SCAR=0.0
Pod
documented
| |||
| 6 | 5 | ▶ | sub type_constraint { shift->{isa} } |
|
Subroutine
type_constraint: called CC=1 SCAR=0.0
Pod
documented
| |||
| 7 | |||
| 8 | 26 | 1; | |
| 9 | |||
| 10 | =encoding utf8 | ||
| 11 | |||
| 12 | =head1 NAME | ||
| 13 | |||
| 14 | Mandel::Model::Field - Field meta object | ||
| 15 | |||
| 16 | =head1 DESCRIPTION | ||
| 17 | |||
| 18 | This class defines meta data for a L<field|Mandel::Model/field> object. | ||
| 19 | |||
| 20 | =head1 ATTRIBUTES | ||
| 21 | |||
| 22 | =head2 builder | ||
| 23 | |||
| 24 | Returns a code-ref or method name for building the default value for this | ||
| 25 | field or undef unless a builder was not defined. | ||
| 26 | |||
| 27 | =head2 name | ||
| 28 | |||
| 29 | Returns the name. | ||
| 30 | |||
| 31 | =head2 type_constraint | ||
| 32 | |||
| 33 | Returns the type specified as "isa" in the constructor. | ||
| 34 | |||
| 35 | =head1 AUTHOR | ||
| 36 | |||
| 37 | Jan Henning Thorsen - C<jhthorsen@cpan.org> | ||
| 38 | |||
| 39 | =cut | ||