X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fnamespace%2Fclean.pm;h=93ecb9f8671aed10bd25ed1531464043bc0506c3;hb=fcfe7810e5ba4f72dadf41d7d7cd92621bbcad4f;hp=5bd0b9ac2b1df73da6ddc3a6304efd612891caf4;hpb=7fae8899daa8cb2afb9a93854ad266a5fcbee5d4;p=p5sagit%2Fnamespace-clean.git
diff --git a/lib/namespace/clean.pm b/lib/namespace/clean.pm
index 5bd0b9a..93ecb9f 100644
--- a/lib/namespace/clean.pm
+++ b/lib/namespace/clean.pm
@@ -15,11 +15,11 @@ use B::Hooks::EndOfScope;
=head1 VERSION
-0.10
+0.11
=cut
-$VERSION = '0.10';
+$VERSION = '0.11';
$STORAGE_VAR = '__NAMESPACE_CLEAN_STORAGE';
=head1 SYNOPSIS
@@ -114,6 +114,27 @@ the installed C method. So your classes should look like:
Same goes for L.
+=head2 Cleaning other packages
+
+You can tell C that you want to clean up another package
+instead of the one importing. To do this you have to pass in the C<-cleanee>
+option like this:
+
+ package My::MooseX::namespace::clean;
+ use strict;
+
+ use namespace::clean (); # no cleanup, just load
+
+ sub import {
+ namespace::clean->import(
+ -cleanee => scalar(caller),
+ -except => 'meta',
+ );
+ }
+
+If you don't care about Cs discover-and-C<-except> logic, and
+just want to remove subroutines, try L.
+
=head1 METHODS
You shouldn't need to call any of these. Just C