From: Dave Rolsky Date: Sat, 21 Mar 2009 03:05:25 +0000 (-0500) Subject: POD and spelling fixes for MM::Attribute X-Git-Tag: 0.72_01~54 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=367415349aab1ae287bca775f70a355069994502;p=gitmo%2FMoose.git POD and spelling fixes for MM::Attribute --- diff --git a/lib/Moose/Meta/Attribute.pm b/lib/Moose/Meta/Attribute.pm index c88dbae..d486880 100644 --- a/lib/Moose/Meta/Attribute.pm +++ b/lib/Moose/Meta/Attribute.pm @@ -822,7 +822,7 @@ the attribute is set. An attribute which is required must be provided to the constructor. An attribute which is required can also have a C or C, -which will satisy its required-ness. +which will satisfy its required-ness. A required attribute must have a C, C or a non-C C @@ -879,8 +879,12 @@ supply a C option to provide a new name for the attribute. The C<%options> can only specify options handled by L. +=back + =head2 Value management +=over 4 + =item B<< $attr->initialize_instance_slot($meta_instance, $instance, $params) >> This method is used internally to initialize the attribute's slot in @@ -922,7 +926,7 @@ for an example. This method overrides the parent to also install delegation methods. -=item B<< $attr->remove_accessors>> +=item B<< $attr->remove_accessors >> This method overrides the parent to also remove delegation methods. @@ -953,10 +957,12 @@ L. These methods are not found in the superclass. They support features provided by Moose. +=over 4 + =item B<< $attr->does($role) >> This indicates whether the I does the given -role. The role can be given as a full class name, or as a resolveable +role. The role can be given as a full class name, or as a resolvable trait name. Note that this checks the attribute itself, not its type constraint, @@ -969,7 +975,7 @@ This is an alternate constructor that handles the C and C options. Effectively, this method is a factory that finds or creates the -appropriate class for the given C and/or C and/or C. Once it has the appropriate class, it will call C<< $class->new($name, %options) >> on that class. @@ -1048,7 +1054,7 @@ true. This is the subroutine reference that was in the C option passed to the constructor, if any. -=item B<< $attr->has_trigger>> +=item B<< $attr->has_trigger >> Returns true if this attribute has a trigger set.