projects
/
gitmo/Class-MOP.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
5483fdd
)
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
patch
|
blob
|
blame
|
history
diff --git
a/lib/Class/MOP/Immutable.pm
b/lib/Class/MOP/Immutable.pm
index
8ee7567
..
bc521da
100644
(file)
--- a/
lib/Class/MOP/Immutable.pm
+++ b/
lib/Class/MOP/Immutable.pm
@@
-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;
}