{
    "mode": "perldoc",
    "parameter": "Specio::Constraint::Enum",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Specio%3A%3AConstraint%3A%3AEnum/json",
    "generated": "2026-06-13T07:35:16Z",
    "synopsis": "my $type = Specio::Constraint::Enum->new(...);\nprint $, \"\\n\" for @{ $type->values };",
    "sections": {
        "NAME": {
            "content": "Specio::Constraint::Enum - A class for constraints which require a string matching one of a set\nof values\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 0.47\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "my $type = Specio::Constraint::Enum->new(...);\nprint $, \"\\n\" for @{ $type->values };\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is a specialized type constraint class for types which require a string that matches one of\na list of values.\n",
            "subsections": []
        },
        "API": {
            "content": "This class provides all of the same methods as Specio::Constraint::Simple, with a few\ndifferences:\n\nSpecio::Constraint::Enum->new( ... )\nThe \"parent\" parameter is ignored if it passed, as it is always set to the \"Str\" type.\n\nThe \"inlinegenerator\" and \"constraint\" parameters are also ignored. This class provides its own\ndefault inline generator subroutine reference.\n\nFinally, this class requires an additional parameter, \"values\". This must be a an arrayref of\nvalid strings for the type.\n\n$enum->values\nReturns an array reference of valid values for the type.\n",
            "subsections": []
        },
        "ROLES": {
            "content": "This class does the Specio::Constraint::Role::Interface and Specio::Role::Inlinable roles.\n",
            "subsections": []
        },
        "SUPPORT": {
            "content": "Bugs may be submitted at <https://github.com/houseabsolute/Specio/issues>.\n\nI am also usually active on IRC as 'autarch' on \"irc://irc.perl.org\".\n",
            "subsections": []
        },
        "SOURCE": {
            "content": "The source code repository for Specio can be found at <https://github.com/houseabsolute/Specio>.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Dave Rolsky <autarch@urth.org>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is Copyright (c) 2012 - 2021 by Dave Rolsky.\n\nThis is free software, licensed under:\n\nThe Artistic License 2.0 (GPL Compatible)\n\nThe full text of the license can be found in the LICENSE file included with this distribution.\n",
            "subsections": []
        }
    },
    "summary": "Specio::Constraint::Enum - A class for constraints which require a string matching one of a set of values",
    "flags": [],
    "examples": [],
    "see_also": []
}