NAME

Poz::Types::enum - Enum type handling for Poz

SYNOPSIS

use Poz qw/z/;

my $enum = Poz::Types::enum->new(['foo', 'bar', 'baz']);
$enum->rule('foo'); # Valid
$enum->rule('qux'); # Throws error

DESCRIPTION

Poz::Types::enum is a module for handling enumeration types within the Poz framework. It allows you to define a set of valid values and provides methods to validate, exclude, and extract these values.

METHODS

new

my $enum = Poz::Types::enum->new(\@values);

Creates a new enum object with =head1 AUTHOR

Your Name <your.email@example.com>

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.