X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FClass.pm;h=3ee836c3fed7e3b8218f8d23d5dcc1358e42372e;hp=fbb4bb9b25adf035af7ceb5d126cdf2c1079f55b;hb=2276cb146244298515808ff1a82b6b252e5448a7;hpb=60cfc6ad27be2d551ceb69753ac9b2c67e52c6f7 diff --git a/lib/Mouse/Meta/Class.pm b/lib/Mouse/Meta/Class.pm index fbb4bb9..3ee836c 100644 --- a/lib/Mouse/Meta/Class.pm +++ b/lib/Mouse/Meta/Class.pm @@ -173,6 +173,10 @@ sub make_immutable { if ($args{inline_destructor}) { $self->add_method('DESTROY' => Mouse::Meta::Method::Destructor->generate_destructor_method_inline( $self )); } + + # Moose's make_immutable returns true allowing calling code to skip setting an explicit true value + # at the end of a source file. + return 1; } sub make_mutable { confess "Mouse does not currently support 'make_mutable'" }