From: Dave Rolsky Date: Fri, 8 Aug 2008 16:53:47 +0000 (+0000) Subject: Document the init_meta method. X-Git-Tag: 0_55_01~43^2~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1ccc7f8ae945081bebf1ad702656b692d18a9e82;p=gitmo%2FMoose.git Document the init_meta method. --- diff --git a/lib/Moose/Role.pm b/lib/Moose/Role.pm index 254c978..aae14a9 100644 --- a/lib/Moose/Role.pm +++ b/lib/Moose/Role.pm @@ -221,6 +221,15 @@ Moose::Role offers a way to remove the keywords it exports, through the C method. You simply have to say C at the bottom of your code for this to work. +=head2 B<< Moose::Role->init_meta(for_class => $role, metaclass => $metaclass) >> + +The C method sets up the metaclass object for the role +specified by C. It also injects a a C accessor into +the role so you can get at this object. + +The default metaclass is L. You can specify an +alternate metaclass with the C parameter. + =head1 CAVEATS Role support has only a few caveats: