logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

MooseX::Clone::Meta::Attribute::Trait::NoClone - A trait for attributes that should not be copied while

Author

       XXXX XXX'XX (Yuval Kogman) <nothingmuch@woobling.org>

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

See Also