[Moose-commits] r7447 - Class-MOP/trunk/lib/Class/MOP
autarch at code2.0beta.co.uk
autarch at code2.0beta.co.uk
Sat Jan 31 17:21:11 GMT 2009
Author: autarch
Date: 2009-01-31 09:21:11 -0800 (Sat, 31 Jan 2009)
New Revision: 7447
Modified:
Class-MOP/trunk/lib/Class/MOP/Class.pm
Log:
Document that initialize() returns a cached metaclass if it exists.
Modified: Class-MOP/trunk/lib/Class/MOP/Class.pm
===================================================================
--- Class-MOP/trunk/lib/Class/MOP/Class.pm 2009-01-31 13:04:03 UTC (rev 7446)
+++ Class-MOP/trunk/lib/Class/MOP/Class.pm 2009-01-31 17:21:11 UTC (rev 7447)
@@ -1243,8 +1243,9 @@
=item B<initialize ($package_name, %options)>
-This initializes and returns returns a B<Class::MOP::Class> object
-for a given a C<$package_name>.
+This initializes and returns returns a B<Class::MOP::Class> object for
+a given a C<$package_name>. If a metaclass already exists for the
+package, it simply returns it instead of creating a new one.
=item B<construct_class_instance (%options)>
More information about the Moose-commits
mailing list