in reply to Do you think it's kosher to "re-bless" a Moose object?
Better to apply a role to an instance, or if you really must change the class use ->meta->rebless_instance. But applying a role at runtime is generally better. And if you have the data early enough, $class->with_traits(...)->new using MooseX::Traits would be ideal.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Do you think it's kosher to "re-bless" a Moose object?
by locked_user sundialsvc4 (Abbot) on Nov 17, 2011 at 16:38 UTC | |
by stvn (Monsignor) on Nov 23, 2011 at 19:27 UTC |