develooper Front page | perl.moose | Postings from April 2012

provide alternate init arg for an attribute

Thread Next
From:
Caleb Cushing
Date:
April 11, 2012 05:55
Subject:
provide alternate init arg for an attribute
Message ID:
CAAHKNRHbV95AyspRoXQO-Y=W1QE1ev5e1DM-s9ZBz_5K6c5+=g@mail.gmail.com
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 with some features I
don't want, and some things that ultimately make it unusable for what
I need ). I'm not sure what things I might be missing in my linked
code to make it work, the trait appears to be added right, but around
initialize_instance_slot doesn't get called. Which magic have I not
pulled out of MooseX::Aliases that I need to accomplish this?

please cc me in responses as I'm not on the list
-- 
Caleb Cushing

http://xenoterracide.com

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About