From: Jesse Luehrs Date: Sun, 26 Jul 2009 03:21:36 +0000 (-0500) Subject: update docs for calling ->wrap on a method object X-Git-Tag: 0.92~18 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9fd0e686787c2e3f22f450dde9400af33b91d1ae;p=gitmo%2FClass-MOP.git update docs for calling ->wrap on a method object --- diff --git a/lib/Class/MOP/Method.pm b/lib/Class/MOP/Method.pm index 8041994..e6dc0a0 100644 --- a/lib/Class/MOP/Method.pm +++ b/lib/Class/MOP/Method.pm @@ -151,8 +151,9 @@ introspection interface. =item B<< Class::MOP::Method->wrap($code, %options) >> -This is the constructor. It accepts a subroutine reference and a hash -of options. +This is the constructor. It accepts a method body in the form of +either a code reference or a L instance, followed +by a hash of options. The options are: @@ -160,11 +161,13 @@ The options are: =item * name -The method name (without a package name). This is required. +The method name (without a package name). This is required if C<$code> +is a coderef. =item * package_name -The package name for the method. This is required. +The package name for the method. This is required if C<$code> is a +coderef. =item * associated_metaclass