1MooseX::Types::Moose(3pUms)er Contributed Perl DocumentatMiooonseX::Types::Moose(3pm)
2
3
4

NAME

6       MooseX::Types::Moose - Type exports that match the types shipped with
7       Moose
8

VERSION

10       version 0.50
11

SYNOPSIS

13         package Foo;
14         use Moose;
15         use MooseX::Types::Moose qw( ArrayRef Int Str );
16         use Carp qw( croak );
17
18         has 'name',
19           is  => 'rw',
20           isa => Str;
21
22         has 'ids',
23           is  => 'rw',
24           isa => ArrayRef[Int];
25
26         sub add {
27             my ($self, $x, $y) = @_;
28             croak 'First arg not an Int'  unless is_Int($x);
29             croak 'Second arg not an Int' unless is_Int($y);
30             return $x + $y;
31         }
32
33         1;
34

DESCRIPTION

36       This package contains a virtual library for MooseX::Types that is able
37       to export all types known to Moose. See MooseX::Types for general usage
38       information.
39

METHODS

41   type_storage
42       Overrides MooseX::Types::Base' "type_storage" to provide a hash
43       reference containing all built-in Moose types.
44

SEE ALSO

46       Moose, Moose::Util::TypeConstraints
47

SUPPORT

49       Bugs may be submitted through the RT bug tracker
50       <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Types> (or
51       bug-MooseX-Types@rt.cpan.org <mailto:bug-MooseX-Types@rt.cpan.org>).
52
53       There is also a mailing list available for users of this distribution,
54       at <http://lists.perl.org/list/moose.html>.
55
56       There is also an irc channel available for users of this distribution,
57       at "#moose" on "irc.perl.org" <irc://irc.perl.org/#moose>.
58

AUTHOR

60       Robert "phaylon" Sedlacek <rs@474.at>
61
63       This software is copyright (c) 2007 by Robert "phaylon" Sedlacek.
64
65       This is free software; you can redistribute it and/or modify it under
66       the same terms as the Perl 5 programming language system itself.
67
68
69
70perl v5.30.1                      2020-01-30         MooseX::Types::Moose(3pm)
Impressum