From: Dave Rolsky Date: Thu, 10 Sep 2009 17:52:22 +0000 (-0500) Subject: Docs for immutable_options X-Git-Tag: 0.92_01~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b4a8b0f59542c7cc7c1da8853f9be23697317ea8;p=gitmo%2FClass-MOP.git Docs for immutable_options --- diff --git a/lib/Class/MOP/Class.pm b/lib/Class/MOP/Class.pm index a23b4c4..f313938 100644 --- a/lib/Class/MOP/Class.pm +++ b/lib/Class/MOP/Class.pm @@ -1579,6 +1579,13 @@ replaced when inlining a destructor. This defaults to false. =back +=item B<< $metaclass->immutable_options >> + +Returns a hash of the options used when making the class immutable, including +both defaults and anything supplied by the user in the call to C<< +$metaclass->make_immutable >>. This is useful if you need to temporarily make +a class mutable and then restore immutability as it was before. + =item B<< $metaclass->make_mutable >> Calling this method reverse the immutabilization transformation.