>>> "Matt S Trout" <[EMAIL PROTECTED]> 02/02/08 8:28 AM >>>
> On Fri, Feb 01, 2008 at 02:57:45PM -0500, Noel Maddy wrote:
> > I'm starting to work with Moose, and I'm really impressed
> > with its design.
> >
> > However, I'm used to using Devel::Cover for code coverage,
> > and it seems to skip code in Moose's attribute default coderefs.
>
> Not directly a solution, but if you use 'builder' instead of default
(which
> I pretty much always do) thenthe actual default logic becomes a
method.
Thanks, Matt. I had missed the 'builder' option on attributes.
I like that -- it puts the initialization code where it belongs, rather
than
cluttering up the attribute definition.
--
Matt S Trout Need help with your Catalyst or DBIx::Class
project?
Technical Director
http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment
platform?
http://chainsawblues.vox.com/
http://www.shadowcat.co.uk/servers/
==============================================================================
CONFIDENTIALITY NOTICE: This email contains information from the sender that
may be CONFIDENTIAL, LEGALLY PRIVILEGED, PROPRIETARY or otherwise protected
from disclosure. This email is intended for use only by the person or entity to
whom it is addressed. If you are not the intended recipient, any use,
disclosure, copying, distribution, printing, or any action taken in reliance on
the contents of this email, is strictly prohibited. If you received this email
in error, please contact the sending party by reply email, delete the email
from your computer system and shred any paper copies.
Note to Patients: There are a number of risks you should consider before using
e-mail to communicate with us. See our Privacy Policy and Henry Ford My Health
at www.henryford.com for more detailed information. If you do not believe that
our policy gives you the privacy and security protection you need, do not send
e-mail or Internet communications to us.
==============================================================================