p5-MooseX-Role-Parameterized-1.11p0
roles with composition parameters
Back to search · Project homepage
Description
Your parameterized role consists of two new things: parameter
declarations and a role block. Parameters are declared using the
"parameter" keyword which very much resembles "has" in Moose. You can
use any option that "has" in Moose accepts. The default value for the is
option is ro as that's a very common case. Use is => 'bare' if you want
no accessor. These parameters will get their values when the consuming
class (or role) uses "with" in Moose. A parameter object will be
constructed with these values, and passed to the role block.
There are many possible implementations for parameterized roles
(hopefully with a consistent enough API).
Package information
- Ports path
- devel/p5-MooseX-Role-Parameterized
- Package architecture
- *
- Maintainer
- The OpenBSD ports mailing-list <ports@openbsd.org>
- Categories
- devel, perl5
- Available flavors
- None listed
These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.
Direct dependencies
Runtime
- devel/p5-Module-Runtime
- devel/p5-Moose
- devel/p5-namespace-autoclean
- devel/p5-namespace-clean STEM->=0.19
Build
Test
- devel/p5-CPAN-Meta-Check STEM->=0.011
- devel/p5-Test-Fatal
- devel/p5-Test-Requires
- devel/p5-Module-Runtime
- devel/p5-Moose
- devel/p5-namespace-autoclean
- devel/p5-namespace-clean STEM->=0.19
Used by (20 dependency relationships)
Includes library, runtime, build and test relationships. Results load 100 at a time.