From: Hans Dieter Pearcey Date: Wed, 24 Jun 2009 20:22:58 +0000 (-0400) Subject: document new behavior X-Git-Tag: 0.84~40^2~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=70a69dd18fb75bd1ada6e8067ea1a3e50d1546d0;p=gitmo%2FMoose.git document new behavior --- diff --git a/lib/Moose/Meta/Attribute.pm b/lib/Moose/Meta/Attribute.pm index beb546b..7f76bc3 100644 --- a/lib/Moose/Meta/Attribute.pm +++ b/lib/Moose/Meta/Attribute.pm @@ -924,6 +924,11 @@ for an example. This method overrides the parent to also install delegation methods. +If, after installing all methods, the attribute object has no associated +methods, it throws an error unless C<< is => 'bare' >> was passed to the +attribute constructor. (Trying to add an attribute that has no associated +methods is almost always an error.) + =item B<< $attr->remove_accessors >> This method overrides the parent to also remove delegation methods.