The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Data::Object::Type::Dispatch

ABSTRACT

Data-Object Dispatch Type Constraint

SYNOPSIS

  package App::Type::Library;

  use Type::Library -base;

  use Data::Object::Type::Dispatch;

  register Data::Object::Type::Dispatch;

  1;

DESCRIPTION

Type constraint for validating Data::Object::Dispatch objects. This type constraint is registered in the Data::Object::Config::Library type library.

METHODS

This package implements the following methods.

name

  my $name = $self->name();

The name method returns the name of the data type.

aliases

  my $aliases = $self->aliases();

The aliases method returns aliases to register in the type library.

coercions

  my $coercions = $self->coercions();

The coercions method returns coercions to configure on the type constraint.

validation

  my $validation = $self->validation();

The validation method returns truthy if type check is valid.