X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FExporter.pm;h=563031d5a7e334c9faec7ab51b712f1f5fc014e3;hb=66e3df7a8d3d839b53f6fc3af8f4bad6fc27fefe;hp=8561936e6a7ccbc692e6fb0853250af67eb961d3;hpb=b11787bf7cafe5074ae42bf8ef4258c5c176f1d2;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Exporter.pm b/lib/Mouse/Exporter.pm index 8561936..563031d 100644 --- a/lib/Mouse/Exporter.pm +++ b/lib/Mouse/Exporter.pm @@ -114,7 +114,7 @@ sub build_import_methods{ $args{EXPORTS} = \%exports; $args{REMOVABLES} = \@removables; - $args{groups}{all} ||= \@all; + $args{groups}{all} ||= \@all; if(my $default_list = $args{groups}{default}){ my %default; @@ -136,7 +136,6 @@ sub build_import_methods{ return (\&do_import, \&do_unimport); } - # the entity of general import() sub do_import { my($package, @args) = @_; @@ -183,11 +182,11 @@ sub do_import { if(@traits){ my $type = (split /::/, ref $meta)[-1]; # e.g. "Class" for "My::Meta::Class" - @traits = - map{ - ref($_) ? $_ - : Mouse::Util::resolve_metaclass_alias($type => $_, trait => 1) - } @traits; + @traits = map{ + ref($_) + ? $_ + : Mouse::Util::resolve_metaclass_alias($type => $_, trait => 1) + } @traits; require Mouse::Util::MetaRole; Mouse::Util::MetaRole::apply_metaroles( @@ -268,7 +267,7 @@ Mouse::Exporter - make an import() and unimport() just like Mouse.pm =head1 VERSION -This document describes Mouse version 0.80 +This document describes Mouse version 0.88 =head1 SYNOPSIS @@ -278,8 +277,8 @@ This document describes Mouse version 0.80 use Mouse::Exporter; Mouse::Exporter->setup_import_methods( - as_is => [ 'has_rw', 'other_sugar', \&Some::Random::thing ], - also => 'Mouse', + as_is => [ 'has_rw', 'other_sugar', \&Some::Random::thing ], + also => 'Mouse', ); sub has_rw {