projects
/
gitmo/Mouse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
6a4ab70
)
Implement make_mutable :)
gfx [Wed, 16 Dec 2009 08:41:17 +0000 (17:41 +0900)]
lib/Mouse/Meta/Class.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Mouse/Meta/Class.pm
b/lib/Mouse/Meta/Class.pm
index
5c1fca2
..
08bb9d3
100644
(file)
--- a/
lib/Mouse/Meta/Class.pm
+++ b/
lib/Mouse/Meta/Class.pm
@@
-264,7
+264,11
@@
sub make_immutable {
return 1;
}
-sub make_mutable { not_supported }
+sub make_mutable {
+ my($self) = @_;
+ $self->{is_immutable} = 0;
+ return;
+}
sub is_immutable { $_[0]->{is_immutable} }
sub is_mutable { !$_[0]->{is_immutable} }