From: Karen Etheridge Date: Wed, 29 Sep 2010 00:04:39 +0000 (-0700) Subject: document the return value of add_attribute X-Git-Tag: 1.09~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=392c350b99ac9271d8a2ef56b913daa6e0a77f0e;p=gitmo%2FClass-MOP.git document the return value of add_attribute --- diff --git a/lib/Class/MOP/Class.pm b/lib/Class/MOP/Class.pm index 122ed9a..0b8efcc 100644 --- a/lib/Class/MOP/Class.pm +++ b/lib/Class/MOP/Class.pm @@ -1793,6 +1793,8 @@ class when the attribute is added. If an attribute of the same name already exists, the old attribute will be removed first. +The added attribute will be returned. + =item B<< $metaclass->remove_attribute($attribute_name) >> This will remove the named attribute from the class, and