Class::Meta::Type 0.53 reviewDownload
Class::Meta::Type is a Perl module for data type validation and accessor building. SYNOPSIS package MyApp::TypeDef; use
Class::Meta::Type is a Perl module for data type validation and accessor building.
my $type = Class::Meta::Type->add( key => 'io_socket',
desc => 'IO::Socket object',
name => 'IO::Socket Object' );
This class stores the various data types used by Class::Meta. It manages all aspects of data type validation and method creation. New data types can be added to Class::Meta::Type by means of the add() constructor. This is useful for creating custom types for your Class::Meta-built classes.
Note:This class manages the most advanced features of Class::Meta. Before deciding to create your own accessor closures as described in add(), you should have a thorough working knowledge of how Class::Meta works, and have studied the add() method carefully. Simple data type definitions such as that shown in the SYNOPSIS, on the other hand, are encouraged.
Class::Meta::Type 0.53 keywords