Added note to make clear that get_attribute does not search superclasses
Jay Kuri [Tue, 9 Jun 2009 17:53:35 +0000 (11:53 -0600)]
lib/Class/MOP/Class.pm

index ec53419..d2dfd10 100644 (file)
@@ -1613,7 +1613,10 @@ attributes which are defined in terms of "regular" Perl 5 methods.
 
 This will return a L<Class::MOP::Attribute> for the specified
 C<$attribute_name>. If the class does not have the specified
-attribute, it returns C<undef>
+attribute, it returns C<undef>.  
+
+NOTE that get_attribute does not search superclasses, for 
+that you need to use C<find_attribute_by_name>.
 
 =item B<< $metaclass->has_attribute($attribute_name) >>