1MooseX::Clone::Meta::AtUtsreirbuCMtooeno:ts:reTiXrb:au:itCtel:do:nNPeoe:Cr:llMoenDteoa(c:3u:pmAmet)nttraitbiuotne::Trait::NoClone(3pm)
2
3
4
6 MooseX::Clone::Meta::Attribute::Trait::NoClone - A trait for attributes
7 that should not be copied while cloning
8
10 version 0.06
11
13 with qw(MooseX::Clone);
14
15 has _some_special_thingy => (
16 traits => [qw(NoClone)],
17 );
18
20 Sometimes certain values should not be carried over when cloning an
21 object.
22
23 This attribute trait implements just that.
24
26 clone_value
27 If the "init_arg" param is set (that means an explicit value was
28 given to "clone") sets the attribute to that value.
29
30 Otherwise calls "clear_value" and "initialize_instance_slot".
31
33 XXXX XXX'XX (Yuval Kogman) <nothingmuch@woobling.org>
34
36 This software is copyright (c) 2008 by XXXX XXX'XX (Yuval Kogman).
37
38 This is free software; you can redistribute it and/or modify it under
39 the same terms as the Perl 5 programming language system itself.
40
41
42
43perl v5.28.1 MooseX:2:0C1l5o-n0e5:-:2M3eta::Attribute::Trait::NoClone(3pm)