./devel/p5-MooseX-Has-Options, Succinct options for Moose

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: pkgsrc-2019Q2, Version: 0.003nb5, Package name: p5-MooseX-Has-Options-0.003nb5, Maintainer: pkgsrc-users

MooseX::Has::Options provides a succinct syntax for declaring options for
Moose attributes. It hijacks the has function imported by Moose and replaces
it with one that understands following options syntax:

use Moose;
use MooseX::Has::Options;

has 'some_attribute' => (
qw(:ro :required),
isa => 'Str',
...
);

This will converted into:

use Moose;
use MooseX::Has::Options;

has 'some_attribute' => (
is => 'ro',
required => 1,
isa => 'Str',
...
);


Required to run:
[lang/perl5]

Required to build:
[pkgtools/cwrappers] [textproc/p5-String-RewritePrefix] [devel/p5-Moose]

Master sites: (Expand)

SHA1: 93cbd4fa8875300064824aad11f898d418318884
RMD160: b91f8af7ae3ba98563b96c540dc1f3339ead6071
Filesize: 13.522 KB

Version history: (Expand)