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

NAME

6       Type::Tiny::Duck - type constraints based on the "can" method
7

STATUS

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

DESCRIPTION

12       Type constraints of the general form "{ $_->can("method") }".
13
14       This package inherits from Type::Tiny; see that for most documentation.
15       Major differences are listed below:
16
17   Attributes
18       "methods"
19           An arrayref of method names.
20
21       "constraint"
22           Unlike Type::Tiny, you cannot pass a constraint coderef to the
23           constructor.  Instead rely on the default.
24
25       "inlined"
26           Unlike Type::Tiny, you cannot pass an inlining coderef to the
27           constructor.  Instead rely on the default.
28
29       "parent"
30           Parent is always Types::Standard::Object, and cannot be passed to
31           the constructor.
32

BUGS

34       Please report any bugs to
35       <http://rt.cpan.org/Dist/Display.html?Queue=Type-Tiny>.
36

SEE ALSO

38       Type::Tiny::Manual.
39
40       Type::Tiny.
41
42       Moose::Meta::TypeConstraint::DuckType.
43

AUTHOR

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

DISCLAIMER OF WARRANTIES

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