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
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 E<lt>stevan@iinteractive.comE<gt>
+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<http://www.iinteractive.com>
+=head1 BUGS
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
+See L<Moose/BUGS> for details on reporting bugs.
=cut