X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FRole.pm;h=5ec4f18824de9b19615d60d126db249fc99ecefc;hb=b7d4b35d8beb17c48cf3f08c386cf863d973a7db;hp=0f96d22fed667690dff8ac55b9d568cc7472493f;hpb=996f5e95ace3c197667927febca9181826229ac9;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Role.pm b/lib/Moose/Meta/Role.pm index 0f96d22..5ec4f18 100644 --- a/lib/Moose/Meta/Role.pm +++ b/lib/Moose/Meta/Role.pm @@ -904,6 +904,31 @@ This is quite likely to change in the future. =back +=head2 Overload introspection and creation + +The methods for dealing with a role's overloads are all identical in API +and behavior to the same methods in L. Note that these are +not particularly useful (yet), because overloads do not participate in role +composition. + +=over 4 + +=item B<< $metarole->is_overloaded >> + +=item B<< $metarole->get_overloaded_operator($op) >> + +=item B<< $metarole->has_overloaded_operator($op) >> + +=item B<< $metarole->get_overload_list >> + +=item B<< $metarole->get_all_overloaded_operators >> + +=item B<< $metarole->add_overloaded_operator($op, $impl) >> + +=item B<< $metarole->remove_overloaded_operator($op) >> + +=back + =head2 Required methods =over 4