From: Jesse Luehrs Date: Thu, 25 Jun 2009 15:35:20 +0000 (-0500) Subject: doc inline_rebless_instance_structure X-Git-Tag: 0.89~26 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0fab42eb2ce8dd16efab2358e48cf4b23a6ab8cc;p=gitmo%2FClass-MOP.git doc inline_rebless_instance_structure --- diff --git a/lib/Class/MOP/Instance.pm b/lib/Class/MOP/Instance.pm index fb14cfd..6d25443 100644 --- a/lib/Class/MOP/Instance.pm +++ b/lib/Class/MOP/Instance.pm @@ -390,6 +390,12 @@ The second argument is a slot name. The method returns a snippet of code that, when inlined, performs some operation on the instance. +=item B<< $metainstance->inline_rebless_instance_structure($instance_variable, $class_variable) >> + +This takes the name of a variable that will, when inlined, represent the object +instance, and the name of a variable that will represent the class to rebless +into, and returns code to rebless an instance into a class. + =back =head2 Introspection