1 package MooseX::StrictConstructor::Role::Object;
5 use namespace::autoclean;
7 after 'BUILDALL' => sub {
15 map { $_->init_arg() } $self->meta()->get_all_attributes()
18 my @bad = sort grep { !$attrs{$_} } keys %{$params};
22 "Found unknown attribute(s) init_arg passed to the constructor: @bad");
30 # ABSTRACT: A role which implements a strict constructor for Moose::Object
38 Moose::Util::MetaRole::apply_base_class_roles(
41 ['MooseX::StrictConstructor::Role::Object'],
46 When you use C<MooseX::StrictConstructor>, your objects will have this
47 role applied to them. It provides a method modifier for C<BUILDALL()>
48 from C<Moose::Object> that implements strict argument checking for