1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
Source: libmoosex-oneargnew-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Uploaders: Niko Tyni <ntyni@debian.org>
Section: perl
Testsuite: autopkgtest-pkg-perl
Priority: optional
Build-Depends: debhelper-compat (= 13)
Build-Depends-Indep: libmoose-perl <!nocheck>,
libmoosex-role-parameterized-perl <!nocheck>,
libnamespace-autoclean-perl <!nocheck>,
libtest-simple-perl <!nocheck>,
perl
Standards-Version: 4.6.2
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libmoosex-oneargnew-perl
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libmoosex-oneargnew-perl.git
Homepage: https://metacpan.org/release/MooseX-OneArgNew
Rules-Requires-Root: no
Package: libmoosex-oneargnew-perl
Architecture: all
Depends: ${misc:Depends},
${perl:Depends},
libmoose-perl,
libmoosex-role-parameterized-perl,
libnamespace-autoclean-perl
Description: Moose role that extends class' constructor to accept single arguments
MooseX::OneArgNew lets your constructor take a single argument, which will be
translated into the value for a one-entry hashref. It is a parameterized
role with two parameters:
* type - The Moose type that the single argument must be for the one-arg form
to work. This should be an existing type, and may be either a string type or
a MooseX::Type.
* init_arg - This is the string that will be used as the key for the hashref
constructed from the one-arg call to new.
|