1MooseX::TraitFor::Meta:U:sTeyrpeCCoonMntosrotisrbeauXit:ne:tdT:r:PaMeiortolFiosDrho:(c:3uM)meetnat:a:tTiyopneConstraint::Mooish(3)
2
3
4
6 MooseX::TraitFor::Meta::TypeConstraint::Mooish - Handle Moo-style
7 constraints
8
10 This document describes version 0.001 of
11 MooseX::TraitFor::Meta::TypeConstraint::Mooish - released March 12,
12 2015 as part of MooseX-Meta-TypeConstraint-Mooish.
13
15 This trait implements the functionality described in
16 MooseX::Meta::TypeConstraint::Mooish, and you, dear reader, are
17 encouraged to read about it over there. Here we simply document the
18 nuts and bolts.
19
21 # determining where this goes is left as an exercise for the reader
22 with 'MooseX::TraitFor::Meta::TypeConstraint::Mooish';
23
25 original_constraint
26 The original constraint CodeRef is stashed away here.
27
28 mooish
29 If true, the constraint should be considered written in the style of
30 Moo constraints; that is, if an exception is thrown the constraint is
31 considered to have failed; otherwise it passes. Return values are
32 ignored.
33
34 Default is true.
35
37 original_constraint()
38 Reader for the "original_constraint" attribute; returns the original
39 constraint as passed to new().
40
41 has_original_constraint()
42 Predicate for the "original_constraint" attribute.
43
44 mooish()
45 Reader for the "mooish" attribute.
46
47 compile_type_constraint
48 If "mooish" is true, we wrap the "original_constraint" in a sub that
49 translates Moo behaviors (die on fail; otherwise success) to
50 Moose::Meta::TypeConstraint expectations (false on fail; true on
51 success).
52
53 We stash the original constraint in "original_constraint" (surprise!),
54 and set the constraint attribute to the wrapped constraint.
55
56 create_child_type
57 Subtypes created here are not mooish, unless an explicit "mooish =" 1>
58 is passed.
59
61 Please see those modules/websites for more information related to this
62 module.
63
64 · MooseX::Meta::TypeConstraint::Mooish
65
66 · MooseX::Meta::TypeConstraint::Mooish
67
69 The development version is on github at
70 <http://https://github.com/RsrchBoy/moosex-meta-typeconstraint-mooish>
71 and may be cloned from
72 <git://https://github.com/RsrchBoy/moosex-meta-typeconstraint-mooish.git>
73
75 Please report any bugs or feature requests on the bugtracker website
76 https://github.com/RsrchBoy/moosex-meta-typeconstraint-mooish/issues
77
78 When submitting a bug or request, please include a test-file or a patch
79 to an existing test-file that illustrates the bug or desired feature.
80
82 Chris Weyl <cweyl@alumni.drew.edu>
83
84 I'm a material boy in a material world
85 Please note I do not expect to be gittip'ed or flattr'ed for this work,
86 rather it is simply a very pleasant surprise. I largely create and
87 release works like this because I need them or I find it enjoyable;
88 however, don't let that stop you if you feel like it ;)
89
90 Flattr this
91 <https://flattr.com/submit/auto?user_id=RsrchBoy&url=https%3A%2F%2Fgithub.com%2FRsrchBoy%2Fmoosex-
92 meta-typeconstraint-mooish&title=RsrchBoy's%20CPAN%20MooseX-Meta-
93 TypeConstraint-Mooish&tags=%22RsrchBoy's%20MooseX-Meta-TypeConstraint-
94 Mooish%20in%20the%20CPAN%22>, gittip me
95 <https://www.gittip.com/RsrchBoy/>, or indulge my Amazon Wishlist
96 <http://bit.ly/rsrchboys-wishlist>... If you so desire.
97
99 This software is Copyright (c) 2015 by Chris Weyl.
100
101 This is free software, licensed under:
102
103 The GNU Lesser General Public License, Version 2.1, February 1999
104
105
106
107perl v5.32.0 Moose2X0:2:0T-r0a7i-t2F8or::Meta::TypeConstraint::Mooish(3)