From: Dave Rolsky Date: Thu, 11 Dec 2008 16:24:00 +0000 (+0000) Subject: End examples with no Moose and make_immutable, since we say that's best practices X-Git-Tag: 0.66~27^2~38 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0079cb0cdcbf66640cf62bfd23bd5bdf08321ac3;p=gitmo%2FMoose.git End examples with no Moose and make_immutable, since we say that's best practices --- diff --git a/lib/Moose/Manual.pod b/lib/Moose/Manual.pod index fe3a9c3..5e7d4c0 100644 --- a/lib/Moose/Manual.pod +++ b/lib/Moose/Manual.pod @@ -60,6 +60,9 @@ using and extending its powerful introspection API. isa => 'Str', ); + no Moose; + __PACKAGE__->meta->make_immutable; + This is a I class definition! package User; @@ -91,6 +94,9 @@ This is a I class definition! return 1; } + no Moose; + __PACKAGE__->meta->make_immutable; + We'll leave the line-by-line explanation of this code to other documentation, but you can see how Moose reduces common OO idioms to simple declarative constructs.