1 package MooseX::StrictConstructor::Role::Object;
8 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";
32 # ABSTRACT: A role which implements a strict constructor for Moose::Object
40 Moose::Util::MetaRole::apply_base_class_roles
41 ( for_class => $caller,
43 [ 'MooseX::StrictConstructor::Role::Object' ],
48 When you use C<MooseX::StrictConstructor>, your objects will have this
49 role applied to them. It provides a method modifier for C<BUILDALL()>
50 from C<Moose::Object> that implements strict argument checking for