1Moose::Meta::TypeConstrUasienrt:C:oEnnturmi(b3u)ted PerlMoDoosceu:m:eMnettaat:i:oTnypeConstraint::Enum(3)
2
3
4

NAME

6       Moose::Meta::TypeConstraint::Enum - Type constraint for enumerated
7       values.
8

VERSION

10       version 2.2011
11

DESCRIPTION

13       This class represents type constraints based on an enumerated list of
14       acceptable values.
15

INHERITANCE

17       "Moose::Meta::TypeConstraint::Enum" is a subclass of
18       Moose::Meta::TypeConstraint.
19

METHODS

21   Moose::Meta::TypeConstraint::Enum->new(%options)
22       This creates a new enum type constraint based on the given %options.
23
24       It takes the same options as its parent, with several exceptions.
25       First, it requires an additional option, "values". This should be an
26       array reference containing a list of valid string values. Second, it
27       automatically sets the parent to the "Str" type.
28
29       Finally, it ignores any provided "constraint" option. The constraint is
30       generated automatically based on the provided "values".
31
32   $constraint->values
33       Returns the array reference of acceptable values provided to the
34       constructor.
35
36   $constraint->create_child_type
37       This returns a new Moose::Meta::TypeConstraint object with the type as
38       its parent.
39
40       Note that it does not return a "Moose::Meta::TypeConstraint::Enum"
41       object!
42

BUGS

44       See "BUGS" in Moose for details on reporting bugs.
45

AUTHORS

47       ·   Stevan Little <stevan.little@iinteractive.com>
48
49       ·   Dave Rolsky <autarch@urth.org>
50
51       ·   Jesse Luehrs <doy@tozt.net>
52
53       ·   Shawn M Moore <code@sartak.org>
54
55       ·   יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>
56
57       ·   Karen Etheridge <ether@cpan.org>
58
59       ·   Florian Ragwitz <rafl@debian.org>
60
61       ·   Hans Dieter Pearcey <hdp@weftsoar.net>
62
63       ·   Chris Prather <chris@prather.org>
64
65       ·   Matt S Trout <mst@shadowcat.co.uk>
66
68       This software is copyright (c) 2006 by Infinity Interactive, Inc.
69
70       This is free software; you can redistribute it and/or modify it under
71       the same terms as the Perl 5 programming language system itself.
72
73
74
75perl v5.28.0                      2018-05-1M6oose::Meta::TypeConstraint::Enum(3)
Impressum