[Moose-commits] r7251 -
Class-MOP/branches/meta-independence/lib/Class
sartak at code2.0beta.co.uk
sartak at code2.0beta.co.uk
Wed Jan 7 14:48:23 GMT 2009
Author: sartak
Date: 2009-01-07 06:48:22 -0800 (Wed, 07 Jan 2009)
New Revision: 7251
Modified:
Class-MOP/branches/meta-independence/lib/Class/MOP.pm
Log:
API documentation for get_meta
Modified: Class-MOP/branches/meta-independence/lib/Class/MOP.pm
===================================================================
--- Class-MOP/branches/meta-independence/lib/Class/MOP.pm 2009-01-07 14:42:41 UTC (rev 7250)
+++ Class-MOP/branches/meta-independence/lib/Class/MOP.pm 2009-01-07 14:48:22 UTC (rev 7251)
@@ -1001,6 +1001,12 @@
This will remove a the metaclass stored in the C<$name> key.
+=item B<get_meta ($instance)>
+
+This will return a cached B<Class::MOP::Class> instance for the given
+C<$instance> (which may be a class name) This should be used instead of
+C<< $instance->meta >> in the MOP and its extensions.
+
=back
=head1 SEE ALSO
More information about the Moose-commits
mailing list