Name : perl-MooseX-NewDefaults
| |
Version : 0.4.0
| Vendor : Mageia_Org
|
Release : 7.mga8
| Date : 2020-02-12 06:48:44
|
Group : Development/Perl
| Source RPM : perl-MooseX-NewDefaults-0.4.0-7.mga8.src.rpm
|
Size : 0.07 MB
| |
Packager : umeabot < umeabot>
| |
Summary : Alter attribute defaults with less pain
|
Description :
Ever start using a package from the CPAN, only to discover that it requires lots of subclassing and \"has \'+foo\' => (default => ...)\"? It\'s not recommended Moose best practice, and it\'s certainly not the prettiest thing ever, either.
That\'s where we come in.
This package introduces new sugar that you can use in your class, default_for (as seen above).
e.g.
has \'+foo\' => (default => sub { \'a b c\' });
...is the same as:
default_for foo => sub { \'a b c\' };
|
RPM found in directory: /vol/rzm3/linux-mageia/distrib/8/i586/media/core/release |