SYNOPSIS

    with qw(MooseX::Clone);

    has _some_special_thingy => (
        traits => [qw(NoClone)],
    );

DESCRIPTION

Sometimes certain values should not be carried over when cloning an object.

This attribute trait implements just that.

METHODS

clone_value

If the \*(C`init_arg\*(C' param is set (that means an explicit value was given to \*(C`clone\*(C') sets the attribute to that value. Otherwise calls \*(C`clear_value\*(C' and \*(C`initialize_instance_slot\*(C'.