1 package MooseX::StrictConstructor::Role::Object;
8 after 'BUILDALL' => sub {
16 map { $_->init_arg() } $self->meta()->get_all_attributes()
19 my @bad = sort grep { !$attrs{$_} } keys %{$params};
23 "Found unknown attribute(s) init_arg passed to the constructor: @bad";
33 # ABSTRACT: A role which implements a strict constructor for Moose::Object
41 Moose::Util::MetaRole::apply_base_class_roles(
44 ['MooseX::StrictConstructor::Role::Object'],
49 When you use C<MooseX::StrictConstructor>, your objects will have this
50 role applied to them. It provides a method modifier for C<BUILDALL()>
51 from C<Moose::Object> that implements strict argument checking for