Tomas Doran > MooseX-Types-UUID > MooseX::Types::UUID

Download:
MooseX-Types-UUID-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.03   Source  

NAME ^

MooseX::Types::UUID - UUID type for Moose classes

SYNOPSIS ^

  package Class;
  use Moose;
  use MooseX::Types::UUID qw(UUID);

  has 'uuid' => ( is => 'ro', isa => UUID );

  package main;
  Class->new( uuid => '77C71F92-0EC7-11DD-B986-DF138EE79F6F' );

DESCRIPTION ^

This module lets you constrain attributes to only contain UUIDs (in their usual human-readable form). No coercion is attempted.

EXPORT ^

None by default, you'll usually want to request UUID explicitly.

AUTHOR ^

Jonathan Rockway <jrockway@cpan.org>

Infinity Interactive (http://www.iinteractive.com/)

COPYRIGHT ^

This program is Free software, you may redistribute it under the same terms as Perl itself.

syntax highlighting: