On Mon, May 10, 2010 at 1:42 PM, Christopher Brown
<[email protected]> wrote:
> I think that you can get the meta-attribute applied to all attributes
> through Moose::Util::MetaRole::apply_metaroles.
[...snip...]
> This should make the 'depends_on' meta-attribute available to every class
> without having to specify 'traits => [ ... ]'

MooseX::AlwaysCoerce [1] is an excellent, small example of doing just
this (applying metaclass traits everywhere, that is).

                                -Chris

[1] http://github.com/rkitover/mx-alwayscoerce

-- 
Chris Weyl
Ex astris, scientia

Reply via email to