From: Jay Kuri Date: Tue, 9 Jun 2009 17:53:35 +0000 (-0600) Subject: Added note to make clear that get_attribute does not search superclasses X-Git-Tag: 0.86~22 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=67765c4bd214eede1a60b816cfbf1931440a04b1;p=gitmo%2FClass-MOP.git Added note to make clear that get_attribute does not search superclasses --- diff --git a/lib/Class/MOP/Class.pm b/lib/Class/MOP/Class.pm index ec53419..d2dfd10 100644 --- a/lib/Class/MOP/Class.pm +++ b/lib/Class/MOP/Class.pm @@ -1613,7 +1613,10 @@ attributes which are defined in terms of "regular" Perl 5 methods. This will return a L for the specified C<$attribute_name>. If the class does not have the specified -attribute, it returns C +attribute, it returns C. + +NOTE that get_attribute does not search superclasses, for +that you need to use C. =item B<< $metaclass->has_attribute($attribute_name) >>