BSD Ports

devel/p5-MooseX-Role-Parameterized 1.11 DragonFly

Roles with composition parameters

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
devel, perl5
Package size
40.2 KiB, 93.5 KiB installed

Description

Roles are composable units of behavior. They are useful for factoring out functionality common to many classes from any part of your class hierarchy. See L<Moose::Cookbook::Roles::Comparable_CodeReuse> for an introduction to L<Moose::Role>.

While combining roles affords you a great deal of flexibility, individual roles have very little in the way of configurability. Core Moose provides C<-alias> for renaming methods and C<-excludes> for ignoring methods. These options are primarily for resolving role conflicts. Depending on how much of a purist you are, these options are I<solely> for resolving role conflicts. See L<Moose::Cookbook::Roles::Restartable_AdvancedComposition> for more about C<-alias> and C<-excludes>.

Because roles serve many different masters, they usually provide only the least common denominator of functionality. To empower roles further, more configurability than C<-alias> and C<-excludes> is required. Perhaps your role needs to know which method to call when it is done processing. Or what default value to use for its C<url> attribute.

Parameterized roles offer a solution to these (and other) kinds of problems.

In the other systems

The newest version among them is 1.11, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/p5-MooseX-Role-Parameterized1.11 newestnone known-[email protected]-
FreeBSDdevel/p5-MooseX-Role-Parameterized1.11 newestnone known-[email protected]-
OpenBSDdevel/p5-MooseX-Role-Parameterized1.11p0 newestno data-The OpenBSD ports mailing-list <[email protected]>-
NetBSDdevel/p5-MooseX-Role-Parameterized1.11nb7 newestnone known-[email protected]2026-07-16
MidnightBSDdevel/p5-MooseX-Role-Parameterized1.11 newestno data-[email protected]-
HardenedBSDdevel/p5-MooseX-Role-Parameterized1.11 newestno data-[email protected]-
GhostBSDdevel/p5-MooseX-Role-Parameterized1.11 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

pkg install p5-MooseX-Role-Parameterized

From DPorts:

cd /usr/dports/devel/p5-MooseX-Role-Parameterized && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 5