pkgsrc/devel/p5-MooseX-Has-Options/distinfo
sno 514559d46e Importing package for CPAN module MooseX::Has::Options version 0.002 into
devel/p5-MooseX-Has-Options.

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',
        ...
    );

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.
2012-09-10 09:58:38 +00:00

5 lines
274 B
Text

$NetBSD: distinfo,v 1.1 2012/09/10 09:58:38 sno Exp $
SHA1 (MooseX-Has-Options-0.002.tar.gz) = f837cdf9d8b80a6fdd7eb4ca503347db6418597a
RMD160 (MooseX-Has-Options-0.002.tar.gz) = e6a7666bc7a537f86d382b8f90069ecc5acab68c
Size (MooseX-Has-Options-0.002.tar.gz) = 11586 bytes