Moose extension to apply roles at object creation time
MooseX::Traits provides a method to add some roles to a class when creating
it (during new). Since components can be added easily to a given class, users
don't have to create a named class with the desired roles applied or apply
the roles to the instance one-by-one. This module also provides a basic way
to initialize the applied roles' attributes while constructing objects.
MooseX::Traits(3pUser Contributed Perl DocumentatMooseX::Traits(3pm)
MooseX::Traits - automatically apply roles at object creation
Given some roles:
has foo => ( is => 'ro', isa => 'Int' required => 1 );
And a class:
libmoosex-traits-perl (0.11-2) unstable; urgency=low
[ Ansgar Burchardt ]
* Email change: Ansgar Burchardt -> firstname.lastname@example.org
[ gregor herrmann ]
* debian/control: update (build) dependencies to prepare for
* debian/copyright: update formatting
* Set Standards-Version to 3.9.2 (no changes).
* Add /me to Uploaders.
* Bump debhelper compatibility lev
0.11 THu May 13 14:31:00 CEST 2010
- Fix doc typo. jawnsy++
0.10 Wed May 12 17:53:56 CEST 2010
- Stop pretending the created classes are anonymous.
They used to close over their own metaclass, so they were never
cleaned up anyway and only made debugging unnecessarily hard as
all instances referenced the metaclass as well.
- Require newer v
Browse inside libmoosex-traits-perl_0.11-2_all.deb
Results 1 - 1 of 1Search over 15 billion files
© 1997-2017 FileWatcher.com