Dan,

Something like this maybe?

My::Trait->meta->apply(My::Class->meta->get_attribute('foo'));

- Stevan

On Jun 9, 2008, at 4:21 PM, Dan Harbin wrote:

Is there a way to add a trait to an attribute at runtime? I know it can be done through the "new" method of Moose::Meta::Attribute, but what about
adding one after it's been initialized?

Thanks,
Dan

Reply via email to