Bug#894398: ITP: libmoosex-singlearg-perl -- No-fuss instantiation of Moose objects using a single argument
Package: wnpp
Severity: wishlist
Owner: Xavier Guimard <x.guimard@free.fr>
* Package name : libmoosex-singlearg-perl
Version : 0.04
Upstream Author : Aran Clary Deltac <bluefeet@gmail.com>
* URL : https://metacpan.org/release/MooseX-SingleArg
* License : Artistic or GPL-1+
Programming Lang: Perl
Description : No-fuss instantiation of Moose objects using a single argument
MooseX::SingleArg allows Moose instances to be constructed with a single
argument. Class or role must use this module and then use the single_arg
method to declare which attribute will be assigned the single argument
value.
If the class is constructed using the typical argument list name/value pairs,
or with a hashref, then things work as is usual. But, if the arguments are a
single non-hashref value then that argument will be assigned to whatever
declared attribute.
Reply to: