From: Dave Rolsky Date: Tue, 29 Jul 2008 15:14:31 +0000 (+0000) Subject: Update docs to reflect role-related changes X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=61855e000440c82429fb8e4f09508eeb49ddf5a1;p=gitmo%2FMoose.git Update docs to reflect role-related changes --- diff --git a/lib/Moose/Meta/Role/Application/ToMetaclassInstance.pm b/lib/Moose/Meta/Role/Application/ToMetaclassInstance.pm index 73aec16..0331bf8 100644 --- a/lib/Moose/Meta/Role/Application/ToMetaclassInstance.pm +++ b/lib/Moose/Meta/Role/Application/ToMetaclassInstance.pm @@ -47,7 +47,7 @@ __END__ =head1 NAME -Moose::Meta::Role::Application::ToInstance - Compose a role into an instance +Moose::Meta::Role::Application::ToMetaclassInstance - Compose a role into a metaclass instance =head1 DESCRIPTION diff --git a/lib/Moose/Util.pm b/lib/Moose/Util.pm index 52c2f2c..46e6d0b 100644 --- a/lib/Moose/Util.pm +++ b/lib/Moose/Util.pm @@ -226,6 +226,13 @@ actually used internally by both L and L, and the C<@roles> will be pre-processed through L to allow for the additional arguments to be passed. +=item B + +This function works just like C, except it allows +you to specify what method will be called on the role metaclass when +applying it to the C<$applicant>. This exists primarily so one can use +the C<< Moose::Meta::Role->apply_to_metaclass_instance() >> method. + =item B Returns the values of the C<$instance>'s fields keyed by the attribute names.