X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FUtil.pm;h=0e4d8652ecd184ba3dcd3e758ec9c822e729f4f4;hb=1820fffecb0bd1da64edc16ecde534178b841d14;hp=01a9efc993f7333093abf1b7f987ef5c436fe2c6;hpb=284ca75b14da9b2685a78b7a0d4228512c8575c6;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Util.pm b/lib/Mouse/Util.pm index 01a9efc..0e4d865 100644 --- a/lib/Mouse/Util.pm +++ b/lib/Mouse/Util.pm @@ -331,9 +331,17 @@ Mouse::Util - features, with or without their dependencies =head2 Class::MOP -=head3 C +=head2 C<< is_class_loaded(ClassName) -> Bool >> -=head3 C +Returns whether C is actually loaded or not. It uses a heuristic which +involves checking for the existence of C<$VERSION>, C<@ISA>, and any +locally-defined method. + +=head3 C<< load_class(ClassName) >> + +This will load a given C (or die if it's not loadable). +This function can be used in place of tricks like +C or using C. =head2 MRO::Compat @@ -353,5 +361,15 @@ C =back +=head1 SEE ALSO + +L + +L + +L + +L + =cut