File: Container.pm

package info (click to toggle)
libvalidation-class-perl 7.900058-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,536 kB
  • sloc: perl: 21,493; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 386 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package MyApp::Container;

use base 'MyApp::Test::Base';

use Validation::Class;

mxn other       => {
    required    => 1,
    max_length  => 255,
    filters     => [qw/trim strip/]
};

fld name        => {
    mixin       => 'basic',
    max_length  => 255,
    required    => 0
};

bld sub {
    
    my ($self) = @_;
    
    $self->name('Boy');
    
    return $self;
    
};

1;