Package : perl-MooseX-NewDefaults > RPM : perl-MooseX-NewDefaults-0.4.0-5.mga6.noarch.rpm

Basic items

Install
Name perl-MooseX-NewDefaults
Version 0.4.0
Release 5.mga6
URL http://search.cpan.org/dist/MooseX-NewDefaults
Group Development/Perl
Summary Alter attribute defaults with less pain
Size 74KB
Arch noarch
License LGPLv2

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' };

Media information

Distribution release Mageia 6
Media name core-release
Media arch i586

Advanced items

Source RPM perl-MooseX-NewDefaults-0.4.0-5.mga6.src.rpm
Build time 2016-06-19 06:17:59
Changelog View in Sophie
Files View in Sophie
Dependencies View in Sophie