MooseX::Clone::Meta::Attribute::Trait::NoClone(3pm)

MooseX::Clone::Meta::Attribute::Trait::NoClone3pm

A trait for attributes that should not be copied while cloning

Usage

    with qw(MooseX::Clone);
    has _some_special_thingy => (
        traits => [qw(NoClone)],
    );

Version

version 0.06

Overview

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".

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0–8
  2. 9–11
  3. 12–13

Author

XXXX XXX'XX (Yuval Kogman) <[email protected]>

From libmoosex-clone-perl 0.06-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.