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.
In reply to Re: Do you think it's kosher to "re-bless" a Moose object?
by Anonymous Monk
in thread Do you think it's kosher to "re-bless" a Moose object?
by locked_user sundialsvc4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |