NAME

Typed - Minimal typed Object Oriented layer

SYNOPSIS

subtype 'Email' => as 'Str' => where { Email::Valid->address($_) } => message { $_ ? "$_ is not a valid email address" : "No value given for address validation" };

has 'id' => ( isa => 'Int', is => 'rw' );

has 'email' => ( isa => 'Email', is => 'rw' );

has 'password' => ( isa => 'Str', is => 'rw' );

DESCRIPTION

Typed is a minimalistic typed Object Oriented layer.

The goal is to be mostly compatible with Moose::Manual::Types.