Class::Meta::Type

Class::Meta::Type is a Perl module for data type validation and accessor building.
Download

Class::Meta::Type Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • David Wheeler
  • Publisher web site:
  • http://search.cpan.org/~dwheeler/

Class::Meta::Type Tags


Class::Meta::Type Description

Class::Meta::Type is a Perl module for data type validation and accessor building. Class::Meta::Type is a Perl module for data type validation and accessor building.SYNOPSIS package MyApp::TypeDef; use strict; use Class::Meta::Type; use IO::Socket; 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. Requirements: · Perl


Class::Meta::Type Related Software