MooseX::Clone::Meta::Attribute::Trait::NoClone - A trait for attributes that should not be copied while
Contents
Copyright And License
This software is copyright (c) 2008 by XXXX XXX'XX (Yuval Kogman).
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5
programming language system itself.
perl v5.34.0 2022-06-15 MooseX::Clone::...:Trait::NoClone(3pm)
Description
Sometimes certain values should not be carried over when cloning an object.
This attribute trait implements just that.
Methods
clone_value
If the "init_arg" param is set (that means an explicit value was given to "clone") sets the attribute
to that value.
Otherwise calls "clear_value" and "initialize_instance_slot".
Name
MooseX::Clone::Meta::Attribute::Trait::NoClone - A trait for attributes that should not be copied while
cloning
Synopsis
with qw(MooseX::Clone);
has _some_special_thingy => (
traits => [qw(NoClone)],
);
Version
version 0.06
