Path to this page:
./
devel/p5-MooseX-Has-Options,
Succinct options for Moose
Branch: CURRENT,
Version: 0.003nb11,
Package name: p5-MooseX-Has-Options-0.003nb11,
Maintainer: pkgsrc-usersMooseX::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] [
devel/p5-Package-Stash]
Required to build:[
devel/p5-Moose] [
devel/p5-Test-Most] [
devel/p5-namespace-autoclean] [
textproc/p5-String-RewritePrefix] [
pkgtools/cwrappers]
Master sites: (Expand)
Filesize: 13.522 KB
Version history: (Expand)
- (2024-11-16) Updated to version: p5-MooseX-Has-Options-0.003nb11
- (2023-07-06) Updated to version: p5-MooseX-Has-Options-0.003nb10
- (2022-06-28) Updated to version: p5-MooseX-Has-Options-0.003nb9
- (2021-05-25) Updated to version: p5-MooseX-Has-Options-0.003nb8
- (2020-09-01) Updated to version: p5-MooseX-Has-Options-0.003nb7
- (2019-08-11) Updated to version: p5-MooseX-Has-Options-0.003nb6
CVS history: (Expand)