From: Shawn M Moore Date: Tue, 24 Mar 2009 03:25:15 +0000 (-0400) Subject: Document rebless_instance_away as part of rebless_instance X-Git-Tag: 0.78_02~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6203139c5f2a3f4dc34afe1d8c6212a697d03800;p=gitmo%2FClass-MOP.git Document rebless_instance_away as part of rebless_instance --- diff --git a/lib/Class/MOP/Class.pm b/lib/Class/MOP/Class.pm index e85159e..53e39cd 100644 --- a/lib/Class/MOP/Class.pm +++ b/lib/Class/MOP/Class.pm @@ -1239,6 +1239,12 @@ like constructor parameters and used to initialize the object's attributes. Any existing attributes that are already set will be overwritten. +Before reblessing the instance, this method will call +C on the instance's current metaclass. This method +will be passed the instance, the new metaclass, and any parameters +specified to C. By default, C +does nothing; it is merely a hook. + =item B<< $metaclass->new_object(%params) >> This method is used to create a new object of the metaclass's