From: Matt S Trout Date: Fri, 16 Nov 2007 14:04:32 +0000 (+0000) Subject: doc patch from abraxxa X-Git-Tag: v0.08000~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=22fa67203b1d5719e7b09491e39bbde991400c53;p=p5sagit%2FClass-Accessor-Grouped.git doc patch from abraxxa --- diff --git a/lib/Class/Accessor/Grouped.pm b/lib/Class/Accessor/Grouped.pm index a5445d8..933c687 100644 --- a/lib/Class/Accessor/Grouped.pm +++ b/lib/Class/Accessor/Grouped.pm @@ -38,6 +38,10 @@ Creates a set of accessors in a given group. $group is the name of the accessor group for the generated accessors; they will call get_$group($field) on get and set_$group($field, $value) on set. +If you want to mimic Class::Accessor's mk_accessors $group has to be 'simple' +to tell Class::Accessor::Grouped to use its own get_simple and set_simple +methods. + @fieldspec is a list of field/accessor names; if a fieldspec is a scalar this is used as both field and accessor name, if a listref it is expected to be of the form [ $accessor, $field ].