Implement make_mutable :)
gfx [Wed, 16 Dec 2009 08:41:17 +0000 (17:41 +0900)]
lib/Mouse/Meta/Class.pm

index 5c1fca2..08bb9d3 100644 (file)
@@ -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} }