---
name: "MooseX::Clone::Meta::Attribute::Trait::NoClone"
section: "3pm"
platform: "linux"
package: "libmoosex-clone-perl"
version: "0.06-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/MooseX::Clone::Meta::Attribute::Trait::NoClone"
---

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

A trait for attributes that should not be copied while cloning

## NAME

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

## VERSION

version 0.06

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

## AUTHOR

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

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