From: Gerda Shank Date: Wed, 9 Sep 2009 00:29:57 +0000 (-0400) Subject: minor doc tweaks X-Git-Tag: 0.89_02~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9e25a72afdc819ad5f24d850132fd2e7bd761e06;p=gitmo%2FMoose.git minor doc tweaks --- diff --git a/lib/Moose/Manual/Classes.pod b/lib/Moose/Manual/Classes.pod index 5619db3..8962c97 100644 --- a/lib/Moose/Manual/Classes.pod +++ b/lib/Moose/Manual/Classes.pod @@ -94,13 +94,17 @@ C at the end of your module file. This deletes Moose's sugar functions from your class's namespace, so that C<< Person->can('has') >> will no longer return true. +A more generic way to unimport not only L's exports but also +those from type libraries and other modules is to use +L or L. + =head1 MAKING IT FASTER Moose has a feature called "immutabilization" that you can use to greatly speed up your classes at runtime. However, using it does incur a cost when your class is first being loaded. When you make your class immutable you tell Moose that you will not be changing it in the -future. You will not adding any more attributes, methods, roles, etc. +future. You will not be adding any more attributes, methods, roles, etc. This allows Moose to generate code specific to your class. In particular, it creates an "inline" constructor, making object diff --git a/lib/Moose/Meta/Class.pm b/lib/Moose/Meta/Class.pm index 7eb4d68..4ab875c 100644 --- a/lib/Moose/Meta/Class.pm +++ b/lib/Moose/Meta/Class.pm @@ -700,8 +700,9 @@ These all default to the appropriate Moose class. =item B<< Moose::Meta::Class->create($package_name, %options) >> This overrides the parent's method in order to accept a C -option. This should be an array reference containing one more roles -that the class does, each optionally followed by a hashref of options. +option. This should be an array reference containing roles +that the class does, each optionally followed by a hashref of options +(C<-excludes> and C<-alias>). my $metaclass = Moose::Meta::Class->create( 'New::Class', roles => [...] );