From: Jesse Luehrs Date: Fri, 6 May 2011 19:41:16 +0000 (-0500) Subject: stop documenting metaclass, lazy_build, and initializer in Moose.pm X-Git-Tag: 2.0003~52 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=61ef81d4a5c0c55c2eebba1e3b986f9e73671d38;p=gitmo%2FMoose.git stop documenting metaclass, lazy_build, and initializer in Moose.pm --- diff --git a/lib/Moose.pm b/lib/Moose.pm index fa156f1..9883f00 100644 --- a/lib/Moose.pm +++ b/lib/Moose.pm @@ -624,22 +624,13 @@ a HASH ref) of the methods you want mapped. =back -=item I $metaclass_name> - -This tells the class to use a custom attribute metaclass for this particular -attribute. Custom attribute metaclasses are useful for extending the -capabilities of the I keyword: they are the simplest way to extend the MOP, -but they are still a fairly advanced topic and too much to cover here. See -L for more information. - -See L for details on how a metaclass name -is resolved to a class name. - =item I [ @role_names ]> This tells Moose to take the list of C<@role_names> and apply them to the -attribute meta-object. This is very similar to the I option, but -allows you to use more than one extension at a time. +attribute meta-object. Custom attribute metaclass traits are useful for +extending the capabilities of the I keyword: they are the simplest way to +extend the MOP, but they are still a fairly advanced topic and too much to +cover here. See L for details on how a trait name is resolved to a role name. @@ -680,21 +671,6 @@ Class::MOP::Attribute|Class::MOP::Attribute/predicate> for more information. Note that the predicate will return true even for a C attribute whose value has expired. -=item I => (0|1) - -Automatically define lazy => 1 as well as builder => "_build_$attr", clearer => -"clear_$attr', predicate => 'has_$attr' unless they are already defined. - -=item I => Str - -This may be a method name (referring to a method on the class with -this attribute) or a CODE ref. The initializer is used to set the -attribute value on an instance when the attribute is set during -instance initialization (but not when the value is being assigned -to). See the L for more -information. - =item I => $string An arbitrary string that can be retrieved later by calling C<<