Re: Moose hook
[email protected] (Chris Prather)
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <CAEP+=B2dQViBtc2k7hhnEjen+=9PEq26pC2UwxUObtrF3Rm+sA@mail.gmail.com> |
On Tue, Oct 18, 2011 at 1:26 PM, 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. 1) Why? That's not something people normally want to do. 2) You'll want to look at how things like https://metacpan.org/release/MooseX-Role-Strict go about doing it. Another example of something that alters Role composition is https://metacpan.org/release/MooseX-Aliases But without knowing better the answer to #1 it's difficult to give advice. The current thread suggests to me you have an X/Y problem going on. -Chris