/usr/share/perl5/MouseX/StrictConstructor.pm is in libmousex-strictconstructor-perl 0.02-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | package MouseX::StrictConstructor;
use 5.006_002;
use Mouse ();
use Mouse::Exporter;
our $VERSION = '0.02';
Mouse::Exporter->setup_import_methods();
sub init_meta {
shift;
my $meta = Mouse->init_meta(@_);
$meta->strict_constructor(1); # XXX: Mouse-extended feature
return $meta;
}
1;
__END__
=head1 NAME
MouseX::StrictConstructor - Make your object constructors blow up on unknown attributes
=head1 SYNOPSIS
use Mouse;
use MouseX::StrictConstructor;
=head1 DESCRIPTION
Simply loading this module makes your constructors "strict". If your
constructor is called with an attribute argument that your class
does not declare, then it dies. This is a great way to catch small typos.
=head1 BUGS
All complex software has bugs lurking in it, and this module is no
exception. If you find a bug please either email me, or add the bug
to cpan-RT.
=head1 SEE ALSO
L<Mouse>
L<Moose>
L<MooseX::StrictConstructor>
=head1 AUTHOR
Fuji, Goro (gfx) E<lt>gfuji(at)cpan.orgE<gt>
=head1 COPYRIGHT AND LICENSE
Copyright (c) 2010, Fuji, Goro (gfx). All rights reserved.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
=cut
|