Re: Moose hook

[email protected] (Chris Weyl)
Newsgroups perl.moose
Message-ID <CABSyATHQkPD_DvQ7ktgOcYuiho8G6-Jd5ehaV6UGHY-hYDaB-g@mail.gmail.com>
On Tue, Oct 18, 2011 at 10:26 AM, Peter Gordon <[email protected]>wrote:

> When MyRole is composed into a class.
>
> I want it to fiddle with the attributes of the class while it is being
> built.
>

Without knowing any more, it sounds like you're looking for an attribute
metatrait -- they're perfect for fiddling.  There are a couple good examples
on the CPAN (MooseX::AlwaysCoerce comes to mind), and the Moose manual for
that matter.

                            -Chris

-- 
Chris Weyl
Ex astris scientia
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.