Rechercher une page de manuel
MooseX::Types::Moose.3pm
Langue: en
Version: 2010-06-01 (ubuntu - 24/10/10)
Section: 3 (Bibliothèques de fonctions)
NAME
MooseX::Types::Moose - Types shipped with MooseSYNOPSIS
package Foo; use Moose; use MooseX::Types::Moose qw( Int Str ); use Carp qw( croak ); has 'name', is => 'rw', isa => Str; has 'id', is => 'rw', isa => Int; sub add { my ($self, $x, $y) = @_; croak 'First arg not an Int' unless is_Int($x); croak 'Second arg not an Int' unless is_Int($y); return $x + $y; } 1;
DESCRIPTION
This package contains a virtual library for MooseX::Types that is able to export all types known to Moose. See MooseX::Types for general usage information.METHODS
type_storage
Overrides MooseX::Types::Base' "type_storage" to provide a hash reference containing all built-in Moose types.SEE ALSO
MooseX::Types::Moose, Moose, Moose::Util::TypeConstraintsAUTHOR
See ``AUTHOR'' in MooseX::Types.LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as perl itself.Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre