keep track of the transformer in the immutable class
Yuval Kogman [Tue, 8 Jan 2008 11:53:04 +0000 (11:53 +0000)]
lib/Class/MOP/Immutable.pm

index 8ee7567..bc521da 100644 (file)
@@ -234,6 +234,8 @@ sub create_methods_for_immutable_metaclass {
 
     $methods{get_mutable_metaclass_name} = sub { (shift)->{'___original_class'} };
 
+    $methods{immutable_transformer} = sub { $self };
+
     return \%methods;
 }