Peter, - The &BUILD method is automatically called after object construction. See Moose::Manual::Construction. - I'm not sure what you mean by "when the 'has' has finished." You can use a method modifier on the build method of an attribute to hook onto that attribute's initial assignment. If you're just wanting to run something after the "has" definition, place code directly below it.
-- Richard Simões Internet On Tue, Oct 18, 2011 at 9:05 AM, Peter Gordon <[email protected]> wrote: > Is there a hook to run a routine automatically once a class has been > constructed by Moose? > > Optionally, is there a hook on 'has' when the 'has' has finished? > > Thanks > > Peter > > > >
