From: Chris Prather Date: Sun, 12 Oct 2008 20:52:30 +0000 (+0000) Subject: add doc patch for has() taking a arrayref X-Git-Tag: 0.59~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b4291ab44ad49ff9556fb76b8e15ae4e218d1c21;p=gitmo%2FMoose.git add doc patch for has() taking a arrayref --- diff --git a/lib/Moose.pm b/lib/Moose.pm index e971009..1a8571d 100644 --- a/lib/Moose.pm +++ b/lib/Moose.pm @@ -402,12 +402,13 @@ superclasses still properly inherit from L. This will apply a given set of C<@roles> to the local class. -=item B %options> +=item B %options> -This will install an attribute of a given C<$name> into the current class. -The C<%options> are the same as those provided by -L, in addition to the list below which are provided -by Moose (L to be more specific): +This will install an attribute of a given C<$name> into the current class. If +the first parameter is an array reference, it will create an attribute for +every C<$name> in the list. The C<%options> are the same as those provided by +L, in addition to the list below which are provided by +Moose (L to be more specific): =over 4