Rechercher une page de manuel
MooseX::Clone::Meta::Attribute::Trait::NoClone.3pm
Langue: en
Version: 2009-01-11 (ubuntu - 24/10/10)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
MooseX::Clone::Meta::Attribute::Trait::NoClone - A trait for attrs that should not be copied while cloning.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".
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre