From: Hans Dieter Pearcey Date: Wed, 24 Jun 2009 20:22:58 +0000 (-0400) Subject: document new behavior X-Git-Tag: 0.84~42 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7a5821175bde60a620d4341bdd496c2a69e5b6ed;p=gitmo%2FMoose.git document new behavior --- diff --git a/lib/Moose/Meta/Attribute.pm b/lib/Moose/Meta/Attribute.pm index 6d487aa..df5cdfb 100644 --- a/lib/Moose/Meta/Attribute.pm +++ b/lib/Moose/Meta/Attribute.pm @@ -910,6 +910,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.