[Moose-commits] r7572 - Mouse/trunk/lib/Mouse/Meta
jesse at code2.0beta.co.uk
jesse at code2.0beta.co.uk
Thu Feb 5 22:21:42 GMT 2009
Author: jesse
Date: 2009-02-05 14:21:42 -0800 (Thu, 05 Feb 2009)
New Revision: 7572
Modified:
Mouse/trunk/lib/Mouse/Meta/Class.pm
Log:
Moose's make_immutable returns true allowing calling code to skip
setting an explicit true value at the end of a source file.
Modified: Mouse/trunk/lib/Mouse/Meta/Class.pm
===================================================================
--- Mouse/trunk/lib/Mouse/Meta/Class.pm 2009-02-05 21:25:52 UTC (rev 7571)
+++ Mouse/trunk/lib/Mouse/Meta/Class.pm 2009-02-05 22:21:42 UTC (rev 7572)
@@ -173,6 +173,10 @@
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'" }
More information about the Moose-commits
mailing list