On Tue, Apr 10, 2012 at 03:47:12PM -0500, Caleb Cushing wrote:
http://stackoverflow.com/questions/10051181/how-can-i-provide-an-alternate-init-arg-for-an-attribute-in-moose
I'm trying to add an alternate name/init_arg for some attributes in my
objects. MooseX::Aliases does this behavior (but
On Wed, Apr 11, 2012 at 10:04 AM, Karen Etheridge ka...@etheridge.ca wrote:
has attr = (
is = 'rw',
isa = 'Str',
init_arg = 'attribute',
accessor = 'attribute',
);
so these tests will hold true:
isnt(exception { Class-new(attr='foo') }, undef,
'cannot construct with