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
33   Methods
34       "stringifies_to($constraint)"
35           See Type::Tiny::ConstrainedObject.
36
37       "numifies_to($constraint)"
38           See Type::Tiny::ConstrainedObject.
39
40       "with_attribute_values($attr1 => $constraint1, ...)"
41           See Type::Tiny::ConstrainedObject.
42

BUGS

44       Please report any bugs to
45       <https://github.com/tobyink/p5-type-tiny/issues>.
46

SEE ALSO

48       Type::Tiny::Manual.
49
50       Type::Tiny.
51
52       Moose::Meta::TypeConstraint::DuckType.
53

AUTHOR

55       Toby Inkster <tobyink@cpan.org>.
56
58       This software is copyright (c) 2013-2014, 2017-2021 by Toby Inkster.
59
60       This is free software; you can redistribute it and/or modify it under
61       the same terms as the Perl 5 programming language system itself.
62

DISCLAIMER OF WARRANTIES

64       THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
65       WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
66       MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
67
68
69
70perl v5.32.1                      2021-04-27               Type::Tiny::Duck(3)
Impressum