libmoox-traits-perl

module to automatically apply roles at object creation time

Description

Like MooseX::Traits, the MooX::Traits module provides a method to add some roles to a class when creating it (during new), only for Moo.

Although called MooX::Traits, this module actually uses Role::Tiny, so doesn't really require Moo. If you use it in a non-Moo class, you should be able to safely consume any Role::Tiny-based traits.

If you use it in a Moo class, you should also be able to consume Moo::Role-based traits and Moose::Role-based traits.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://metacpan.org/release/MooX-Traits


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install libmoox-traits-perl