{
    "mode": "perldoc",
    "parameter": "Type::Tiny::Role",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Type%3A%3ATiny%3A%3ARole/json",
    "generated": "2026-06-10T03:38:47Z",
    "sections": {
        "NAME": {
            "content": "Type::Tiny::Role - type constraints based on the \"DOES\" method\n",
            "subsections": []
        },
        "STATUS": {
            "content": "This module is covered by the Type-Tiny stability policy.\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Type constraints of the general form \"{ $->DOES(\"Some::Role\") }\".\n\nThis package inherits from Type::Tiny; see that for most documentation. Major differences are\nlisted below:\n",
            "subsections": [
                {
                    "name": "Attributes",
                    "content": "\"role\"\nThe role for the constraint.\n\nNote that this package doesn't subscribe to any particular flavour of roles (Moose::Role,\nMouse::Role, Moo::Role, Role::Tiny, etc). It simply trusts the object's \"DOES\" method (see\nUNIVERSAL).\n\n\"constraint\"\nUnlike Type::Tiny, you *cannot* pass a constraint coderef to the constructor. Instead rely\non the default.\n\n\"inlined\"\nUnlike Type::Tiny, you *cannot* pass an inlining coderef to the constructor. Instead rely on\nthe default.\n\n\"parent\"\nParent is always Types::Standard::Object, and cannot be passed to the constructor.\n"
                },
                {
                    "name": "Methods",
                    "content": "\"stringifiesto($constraint)\"\nSee Type::Tiny::ConstrainedObject.\n\n\"numifiesto($constraint)\"\nSee Type::Tiny::ConstrainedObject.\n\n\"withattributevalues($attr1 => $constraint1, ...)\"\nSee Type::Tiny::ConstrainedObject.\n"
                }
            ]
        },
        "BUGS": {
            "content": "Please report any bugs to <https://github.com/tobyink/p5-type-tiny/issues>.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Type::Tiny::Manual.\n\nType::Tiny.\n\nMoose::Meta::TypeConstraint::Role.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Toby Inkster <tobyink@cpan.org>.\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENCE": {
            "content": "This software is copyright (c) 2013-2014, 2017-2021 by Toby Inkster.\n\nThis is free software; you can redistribute it and/or modify it under the same terms as the Perl\n5 programming language system itself.\n",
            "subsections": []
        },
        "DISCLAIMER OF WARRANTIES": {
            "content": "THIS PACKAGE IS PROVIDED \"AS IS\" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,\nWITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.\n",
            "subsections": []
        }
    },
    "summary": "Type::Tiny::Role - type constraints based on the \"DOES\" method",
    "flags": [],
    "examples": [],
    "see_also": []
}