- Name: perl-MooseX-Method
- Version: 0.440.0
- Release: 1.mga1
- Epoch:
- Group: Development/Perl
- License: GPL+ or Artistic
- Url: http://search.cpan.org/dist/MooseX-Method
- Summary: Method declaration with type checking
- Architecture: noarch
- Size: 39931
- Distribution: Mageia
- Vendor: Mageia.Org
- Packager: Mageia Team <http://www.mageia.org>
Description:
The problem
This module is an attempt to solve a problem I've often encountered but
never really found any good solution for: validation of method
parameters. How many times have we all ourselves writing code like
this:
sub foo {
my ($self,$args) = @_;
die "Invalid arg1"
unless (defined $arg->{bar} && $arg->{bar} =~ m/bar/);
}
- BuildArch:
- ExcludeArch:
- ExclusiveArch:
- Cookie: ecosse 1295691855
- Buildhost: ecosse
Generated packages:
Other version of this rpm: