use strict;
use warnings;
-use base 'Moose::Meta::Class';
-
use MooseX::StrictConstructor::Meta::Method::Constructor;
+use Moose;
+
+extends 'Moose::Meta::Class';
-sub make_immutable { ## no critic RequireArgUnpacking
+override 'make_immutable' => sub ## no critic RequireArgUnpacking
+{
my $self = shift;
return
$self->SUPER::make_immutable
( constructor_class => 'MooseX::StrictConstructor::Meta::Method::Constructor',
- @_
+ @_,
);
-}
+};
+
+no Moose;
1;
+
+__END__
+
+=pod
+
+=head1 NAME
+
+MooseX::StrictConstructor::Meta::Class - A meta class for classes with strict constructors
+
+=head1 SYNOPSIS
+
+ use MooseX::StrictConstructor;
+
+=head1 DESCRIPTION
+
+This class simply overrides C<make_immutable()> in
+C<Moose::Meta::Class> to use
+C<MooseX::StrictConstructor::Meta::Method::Constructor> as the
+constructor class.
+
+You should never have to use this class directly.
+
+=head1 AUTHOR
+
+Dave Rolsky, C<< <autarch@urth.org> >>
+
+=head1 COPYRIGHT & LICENSE
+
+Copyright 2007 Dave Rolsky, All Rights Reserved.
+
+This program is free software; you can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut
extends 'Moose::Meta::Method::Constructor';
-# using
-sub _generate_BUILDALL ## no critic RequireArgUnpacking
+override '_generate_BUILDALL' => sub ## no critic RequireArgUnpacking
{
my $self = shift;
return $source;
};
+no Moose;
+
1;
+
+__END__
+
+=pod
+
+=head1 NAME
+
+MooseX::StrictConstructor::Meta::Method::Constructor - A meta class to make immutable constructors strict
+
+=head1 SYNOPSIS
+
+ use MooseX::StrictConstructor;
+
+=head1 DESCRIPTION
+
+This class simply overrides C<_generate_BUILDALL()> in
+C<Moose::Meta::Method::Constructor> so that classes that are made
+immutable have a strict constructor.
+
+You should never have to use this class directly.
+
+=head1 AUTHOR
+
+Dave Rolsky, C<< <autarch@urth.org> >>
+
+=head1 COPYRIGHT & LICENSE
+
+Copyright 2007 Dave Rolsky, All Rights Reserved.
+
+This program is free software; you can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut
+