From: Shawn M Moore Date: Sat, 29 Nov 2008 01:37:57 +0000 (+0000) Subject: Doc using the new method->execute API X-Git-Tag: 0.71_01~32 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b7045e66bdf4de33d9d766e9ab2d914c5ca07181;p=gitmo%2FClass-MOP.git Doc using the new method->execute API --- diff --git a/lib/Class/MOP/Method/Accessor.pm b/lib/Class/MOP/Method/Accessor.pm index ef4e34e..f3fc93c 100644 --- a/lib/Class/MOP/Method/Accessor.pm +++ b/lib/Class/MOP/Method/Accessor.pm @@ -201,7 +201,7 @@ Class::MOP::Method::Accessor - Method Meta Object for accessors accessor_type => 'reader', ); - $reader->body->($instance); # call the reader method + $reader->body->execute($instance); # call the reader method =head1 DESCRIPTION diff --git a/lib/Class/MOP/Method/Constructor.pm b/lib/Class/MOP/Method/Constructor.pm index 8388a1c..40ed1fc 100644 --- a/lib/Class/MOP/Method/Constructor.pm +++ b/lib/Class/MOP/Method/Constructor.pm @@ -190,7 +190,7 @@ Class::MOP::Method::Constructor - Method Meta Object for constructors ); # calling the constructor ... - $constructor->body->($metaclass->name, %params); + $constructor->body->execute($metaclass->name, %params); =head1 DESCRIPTION