Make your object constructors blow up on unknown attributes

Edit Package perl-MooseX-StrictConstructor
http://search.cpan.org/dist/MooseX-StrictConstructor/

Simply loading this module 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.

Refresh
Refresh
Source Files
Filename Size Changed
MooseX-StrictConstructor-0.15.tar.gz 0000011014 10.8 KB
perl-MooseX-StrictConstructor.changes 0000000990 990 Bytes
perl-MooseX-StrictConstructor.spec 0000002271 2.22 KB
Revision 6 (latest revision is 13)
Stephan Kulow's avatar Stephan Kulow (coolo) committed (revision 6)
- updated to 0.15
  - The fix in 0.14 only worked with Moose 2.0, causing failures with earlier
    versions.
  
  - Using extends caused strictness to be lost. Fixed by Karen Etheridge.
  
  - This release provides forward compatibility with Moose 1.99+. It will still
    work with Moose 1.23 as well. Most of the work was done by Jesse Luehrs.
  
  - Switched tests to use Test::Fatal instead of Test::Exception.
Comments 0
openSUSE Build Service is sponsored by