Path to this page:
./
devel/p5-MooseX-Has-Options,
Succinct options for Moose
Branch: pkgsrc-2012Q3,
Version: 0.002,
Package name: p5-MooseX-Has-Options-0.002,
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',
...
);
Options must come in the beginning of the argument list.
MooseX::Has::Options will stop searching for options after the
first alphanumeric string that does not start with a colon.
Required to build:[
devel/p5-namespace-autoclean] [
devel/p5-Moose] [
devel/p5-Test-Most]
Master sites: (Expand)
SHA1: f837cdf9d8b80a6fdd7eb4ca503347db6418597a
RMD160: e6a7666bc7a537f86d382b8f90069ecc5acab68c
Filesize: 11.314 KB
Version history: (Expand)
- (2012-10-02) Package added to pkgsrc.se, version p5-MooseX-Has-Options-0.002 (created)