X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FRole%2FMethod%2FConflicting.pm;h=7b0f8e0bc683ef9d82a3ce123e7ba5dd84fb73de;hb=d5f6cadef8d83deaf7dd95302908cd4f61aeab8a;hp=5aea1918723e5cad3924b5a129823c9f931f4f98;hpb=9e4ed568f2e5c1041e6fea8d0cbde420562ab5df;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Role/Method/Conflicting.pm b/lib/Moose/Meta/Role/Method/Conflicting.pm index 5aea191..7b0f8e0 100644 --- a/lib/Moose/Meta/Role/Method/Conflicting.pm +++ b/lib/Moose/Meta/Role/Method/Conflicting.pm @@ -4,27 +4,28 @@ package Moose::Meta::Role::Method::Conflicting; use strict; use warnings; -use base qw(Moose::Meta::Role::Method::Required); +use Moose::Util; -our $VERSION = '0.84'; -$VERSION = eval $VERSION; -our $AUTHORITY = 'cpan:STEVAN'; +use base qw(Moose::Meta::Role::Method::Required); __PACKAGE__->meta->add_attribute('roles' => ( reader => 'roles', required => 1, )); +sub roles_as_english_list { + my $self = shift; + Moose::Util::english_list( map { q{'} . $_ . q{'} } @{ $self->roles } ); +} + 1; +# ABSTRACT: A Moose metaclass for conflicting methods in Roles + __END__ =pod -=head1 NAME - -Moose::Meta::Role::Method::Conflicting - A Moose metaclass for conflicting methods in Roles - =head1 DESCRIPTION =head1 INHERITANCE @@ -61,25 +62,14 @@ Returns the conflicting method's name, as provided to the constructor. Returns the roles that generated this conflicting method, as provided to the constructor. -=back - -=head1 BUGS - -All complex software has bugs lurking in it, and this module is no -exception. If you find a bug please either email me, or add the bug -to cpan-RT. - -=head1 AUTHOR +=item B<< $method->roles_as_english_list >> -Stevan Little Estevan@iinteractive.comE +Returns the roles that generated this conflicting method as an English list. -=head1 COPYRIGHT AND LICENSE - -Copyright 2006-2009 by Infinity Interactive, Inc. +=back -L +=head1 BUGS -This library is free software; you can redistribute it and/or modify -it under the same terms as Perl itself. +See L for details on reporting bugs. =cut