{
    "mode": "info",
    "parameter": "Type::Tiny::Duck",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/info/Type%3A%3ATiny%3A%3ADuck/json",
    "generated": "2026-07-05T13:46:08Z",
    "sections": {
        "Type::Tiny::Duck(3pm) User Contributed Perl DocumentationType::Tiny::Duck(3pm)": {
            "content": "",
            "subsections": []
        },
        "NAME": {
            "content": "Type::Tiny::Duck - type constraints based on the \"can\" 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 \"{ $->can(\"method\") }\".\n\nThis package inherits from Type::Tiny; see that for most documentation.\nMajor differences are listed below:\n\nAttributes\n\"methods\"\nAn arrayref of method names.\n\n\"constraint\"\nUnlike Type::Tiny, you cannot pass a constraint coderef to the\nconstructor.  Instead rely on the default.\n\n\"inlined\"\nUnlike Type::Tiny, you cannot pass an inlining coderef to the\nconstructor.  Instead rely on the default.\n\n\"parent\"\nParent is always Types::Standard::Object, and cannot be passed to\nthe constructor.\n\nMethods\n\"stringifiesto($constraint)\"\nSee Type::Tiny::ConstrainedObject.\n\n\"numifiesto($constraint)\"\nSee Type::Tiny::ConstrainedObject.\n\n\"withattributevalues($attr1 => $constraint1, ...)\"\nSee Type::Tiny::ConstrainedObject.\n",
            "subsections": []
        },
        "BUGS": {
            "content": "Please report any bugs to\n<https://github.com/tobyink/p5-type-tiny/issues>.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Type::Tiny::Manual.\n\nType::Tiny.\n\nMoose::Meta::TypeConstraint::DuckType.\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\nthe same terms as the Perl 5 programming language system itself.\n",
            "subsections": []
        },
        "DISCLAIMER OF WARRANTIES": {
            "content": "THIS PACKAGE IS PROVIDED \"AS IS\" AND WITHOUT ANY EXPRESS OR IMPLIED\nWARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF\nMERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.\n\nperl v5.32.1                      2021-08-31             Type::Tiny::Duck(3pm)",
            "subsections": []
        }
    },
    "summary": "Type::Tiny::Duck - type constraints based on the \"can\" method",
    "flags": [],
    "examples": [],
    "see_also": []
}