From: Jesse Vincent Date: Thu, 5 Feb 2009 22:21:42 +0000 (+0000) Subject: Moose's make_immutable returns true allowing calling code to skip X-Git-Tag: 0.19~37 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=commitdiff_plain;h=2276cb146244298515808ff1a82b6b252e5448a7;hp=f91c9c099c234823ea992198c845e5bb066fdc7a Moose's make_immutable returns true allowing calling code to skip setting an explicit true value at the end of a source file. --- 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'" }