import p5-MooseX-Role-Parameterized 0.13

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.

from Stephan A. Rickauer (MAINTAINER), with tweaks by me
This commit is contained in:
jasper 2009-11-02 10:05:39 +00:00
parent 1162e55229
commit 696295f9d9
4 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/11/02 10:05:39 jasper Exp $
COMMENT= roles with composition parameters
DISTNAME= MooseX-Role-Parameterized-0.13
CATEGORIES= devel
MODULES= cpan
MAINTAINER= Stephan A. Rickauer <stephan.rickauer@startek.ch>
# Perl
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
RUN_DEPENDS= ::devel/p5-Moose
REGRESS_DEPENDS=::devel/p5-Test-Exception
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (MooseX-Role-Parameterized-0.13.tar.gz) = 4HE35jwZg14iv+2I3/8gkQ==
RMD160 (MooseX-Role-Parameterized-0.13.tar.gz) = Q0NYB/faVqflRcUGvJolB9rpYRQ=
SHA1 (MooseX-Role-Parameterized-0.13.tar.gz) = sBzw+sH+Eg2qhAigh9MjkRZjP9w=
SHA256 (MooseX-Role-Parameterized-0.13.tar.gz) = L+PINMonYDCTlaFC/gvBBQlsmRQkPB7LGAPuKF2Pwd0=
SIZE (MooseX-Role-Parameterized-0.13.tar.gz) = 26290

View File

@ -0,0 +1,11 @@
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).

View File

@ -0,0 +1,18 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/11/02 10:05:39 jasper Exp $
${P5SITE}/MooseX/
${P5SITE}/MooseX/Role/
${P5SITE}/MooseX/Role/Parameterized/
${P5SITE}/MooseX/Role/Parameterized.pm
${P5SITE}/MooseX/Role/Parameterized/Meta/
${P5SITE}/MooseX/Role/Parameterized/Meta/Parameter.pm
${P5SITE}/MooseX/Role/Parameterized/Meta/Role/
${P5SITE}/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm
${P5SITE}/MooseX/Role/Parameterized/Meta/Role/Parameterized.pm
${P5SITE}/MooseX/Role/Parameterized/Parameters.pm
${P5SITE}/MooseX/Role/Parameterized/Tutorial.pod
@man man/man3p/MooseX::Role::Parameterized.3p
@man man/man3p/MooseX::Role::Parameterized::Meta::Parameter.3p
@man man/man3p/MooseX::Role::Parameterized::Meta::Role::Parameterizable.3p
@man man/man3p/MooseX::Role::Parameterized::Meta::Role::Parameterized.3p
@man man/man3p/MooseX::Role::Parameterized::Parameters.3p
@man man/man3p/MooseX::Role::Parameterized::Tutorial.3p