1Type::Tiny::Role(3)   User Contributed Perl Documentation  Type::Tiny::Role(3)
2
3
4

NAME

6       Type::Tiny::Role - type constraints based on the "DOES" method
7

STATUS

9       This module is covered by the Type-Tiny stability policy.
10

DESCRIPTION

12       Type constraints of the general form "{ $_->DOES("Some::Role") }".
13
14       This package inherits from Type::Tiny; see that for most documentation.
15       Major differences are listed below:
16
17   Attributes
18       "role"
19           The role for the constraint.
20
21           Note that this package doesn't subscribe to any particular flavour
22           of roles (Moose::Role, Mouse::Role, Moo::Role, Role::Tiny, etc). It
23           simply trusts the object's "DOES" method (see UNIVERSAL).
24
25       "constraint"
26           Unlike Type::Tiny, you cannot pass a constraint coderef to the
27           constructor.  Instead rely on the default.
28
29       "inlined"
30           Unlike Type::Tiny, you cannot pass an inlining coderef to the
31           constructor.  Instead rely on the default.
32
33       "parent"
34           Parent is always Types::Standard::Object, and cannot be passed to
35           the constructor.
36

BUGS

38       Please report any bugs to
39       <http://rt.cpan.org/Dist/Display.html?Queue=Type-Tiny>.
40

SEE ALSO

42       Type::Tiny::Manual.
43
44       Type::Tiny.
45
46       Moose::Meta::TypeConstraint::Role.
47

AUTHOR

49       Toby Inkster <tobyink@cpan.org>.
50
52       This software is copyright (c) 2013-2014, 2017-2019 by Toby Inkster.
53
54       This is free software; you can redistribute it and/or modify it under
55       the same terms as the Perl 5 programming language system itself.
56

DISCLAIMER OF WARRANTIES

58       THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
59       WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
60       MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
61
62
63
64perl v5.28.1                      2019-01-08               Type::Tiny::Role(3)
Impressum