From: Arthur Axel 'fREW' Schmidt Date: Mon, 2 May 2011 23:42:23 +0000 (-0500) Subject: Add SYNOPSIS X-Git-Tag: v0.10003~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3b118c104ef1b11ea6f2123db99a3c2be8f1122f;hp=640fe59afb2ad382a6919d1ee62b5b013c1ec9e6;p=p5sagit%2FClass-Accessor-Grouped.git Add SYNOPSIS --- diff --git a/Changes b/Changes index 944a912..2155bae 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,7 @@ Revision history for Class::Accessor::Grouped. + - Add SYNOPSIS + 0.10002 Sun Dec 19 05:23:44 2010 - Fix grave bug of XS-enabled simple accessors clobbering an existing 'around' overlay installed in the same method slot diff --git a/lib/Class/Accessor/Grouped.pm b/lib/Class/Accessor/Grouped.pm index 229d342..3d2d49d 100644 --- a/lib/Class/Accessor/Grouped.pm +++ b/lib/Class/Accessor/Grouped.pm @@ -80,6 +80,14 @@ Class::Accessor::Grouped - Lets you build groups of accessors =head1 SYNOPSIS + use base 'Class::Accessor::Grouped'; + + # make basic accessors for objects + __PACKAGE__->mk_group_accessors(simple => qw(id name email)); + + # make accessor that works for objects and classes + __PACKAGE__->mk_group_accessors(inherited => 'awesome_level'); + =head1 DESCRIPTION This class lets you build groups of accessors that will call different @@ -471,6 +479,8 @@ Christopher H. Laco Caelum: Rafael Kitover +frew: Arthur Axel "fREW" Schmidt + groditi: Guillermo Roditi Jason Plum