From: Graham Knop Date: Tue, 4 Mar 2014 02:44:53 +0000 (-0500) Subject: formatting cleanups X-Git-Tag: v1.003003~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FRole-Tiny.git;a=commitdiff_plain;h=afc827bed3e1af5e720284738efcff153ad3490a formatting cleanups --- diff --git a/lib/Role/Tiny.pm b/lib/Role/Tiny.pm index b034790..191c0bd 100644 --- a/lib/Role/Tiny.pm +++ b/lib/Role/Tiny.pm @@ -152,7 +152,7 @@ sub create_class_with_roles { my $composite_info = $me->_composite_info_for(@roles); my %conflicts = %{$composite_info->{conflicts}}; if (keys %conflicts) { - my $fail = + my $fail = join "\n", map { "Method name conflict for '$_' between roles " @@ -203,7 +203,7 @@ sub apply_roles_to_package { delete @conflicts{@have}; if (keys %conflicts) { - my $fail = + my $fail = join "\n", map { "Due to a method name conflict between roles " @@ -449,6 +449,7 @@ sub is_role { } 1; +__END__ =encoding utf-8 @@ -534,7 +535,7 @@ Declares a list of methods that must be defined to compose role. Composes another role into the current role (or class via L). If you have conflicts and want to resolve them in favour of Some::Role1 you -can instead write: +can instead write: with 'Some::Role1'; with 'Some::Role2';