libmoosex-strictconstructor-perl
Make your object constructors blow up on unknown attributes
"use MooseX::StrictConstructor" instead of just "use Moose" makes your
constructors strict. If your constructor is called with an attribute
init argument that your class does not declare, then it calls
"Carp::confess()". This is a great way to catch small typos.
/usr/share/man/man3/MooseX::StrictConstructor.3pm.gz
MooseX::StrictConUsercContributed PerlMooseX::StrictConstructor(3pm)
NAME
MooseX::StrictConstructor - Make your object constructors
blow up on unknown attributes
VERSION
version 0.19
SYNOPSIS
package My::Class;
use Moose;
use MooseX::StrictConstructor;
has 'size' => ...;
# then later ...
# this blows up
more»
/usr/share/man/man3/MooseX::StrictConstructor::Trait::Class.3pm.gz
MooseX::StrictConUsercCoMooseX::StrictConstructor::Trait::Class(3pm)
NAME
MooseX::StrictConstructor::Trait::Class - A role to make
immutable constructors strict
VERSION
version 0.19
DESCRIPTION
This role simply wraps "_inline_BUILDALL()" (from
"Moose::Meta::Class") so that immutable classes have a strict
constructor.
AUTHOR
Dave Rolsky <autarc
more»
/usr/share/man/man3/MooseX::StrictConstructor::Trait::Method::Constructor.3pm.gz
MooseX::StMooseX::StrictConstructor::Trait::Method::Constructor(3pm)
NAME
MooseX::StrictConstructor::Trait::Method::Constructor - A
role to make immutable constructors strict
VERSION
version 0.19
DESCRIPTION
This role simply wraps "_generate_BUILDALL()" (from
"Moose::Meta::Method::Constructor") so that immutable classes
have a strict constructor.
AUT
more»
/usr/share/doc/libmoosex-strictconstructor-perl/changelog.Debian.gz
libmoosex-strictconstructor-perl (0.19-1) unstable; urgency=low
* New upstream release.
* Updat
more»
/usr/share/doc/libmoosex-strictconstructor-perl/changelog.gz
0.19 2012-01-17
- The 0.17 release broke compatibility with pre-2.0 versions of Moose.
0.18
more»
/usr/share/doc/libmoosex-strictconstructor-perl/copyright
Browse inside libmoosex-strictconstructor-perl_0.19-1_all.deb
Download libmoosex-strictconstructor-perl_0.19-1_all.deb