# to provide a non-inherited inlining method, because falling back to
# the default inlining method is most likely going to be wrong
# yes, this is a huge hack, but so is the entire error system, so.
- return '$meta->create_error(' . $msg . ', ' . $args . ');'
+ return
+ '$meta->create_error('
+ . $msg
+ . ( defined $args ? ', ' . $args : q{} ) . ');'
unless $class->meta->has_method('_inline_new');
$class->_inline_new(
argument, but the option hash reference can also contain any other
role relevant values like exclusions or parameterized role arguments.
-=item B<< $metaclass->make_immutable(%options) >>
-
-This overrides the parent's method to add a few options. Specifically,
-it uses the Moose-specific constructor and destructor classes, and
-enables inlining the destructor.
-
-Since Moose always inlines attributes, it sets the C<inline_accessors> option
-to false.
-
=item B<< $metaclass->new_object(%params) >>
This overrides the parent's method in order to add support for