Re: Wrapping builder from attribute trait?

[email protected] (Karen Etheridge)
Newsgroups perl.moose
Message-ID <[email protected]>
On Fri, Apr 27, 2012 at 11:24:46AM -0400, Maddy, Noel wrote:
> Handling a builder isn't quite that easy -- if the builder method is
> defined before the attribute, then it's a simple add_around_method_modifier
> in _process_options.

You can wrap Moose::Meta::Attributes::_call_builder, and its equivalent
that produces an inlined version at make_immutable time.


-- 
                 "Ill fares the land to hastening ills a prey,
                   where wealth accumulates, and men decay."
               Oliver Goldsmith (1728-1770), _Deserted Village_
            .             .            .            .             .
Karen Etheridge, [email protected]       GCS C+++$ USL+++$ P+++$ w--- M++
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.