2 package Moose::Meta::Role::Method::Conflicting;
9 use base qw(Moose::Meta::Role::Method::Required);
11 our $AUTHORITY = 'cpan:STEVAN';
13 __PACKAGE__->meta->add_attribute('roles' => (
18 sub roles_as_english_list {
20 Moose::Util::english_list( map { q{'} . $_ . q{'} } @{ $self->roles } );
25 # ABSTRACT: A Moose metaclass for conflicting methods in Roles
35 C<Moose::Meta::Role::Method::Conflicting> is a subclass of
36 L<Moose::Meta::Role::Method::Required>.
42 =item B<< Moose::Meta::Role::Method::Conflicting->new(%options) >>
44 This creates a new type constraint based on the provided C<%options>:
50 The method name. This is required.
54 The list of role names that generated the conflict. This is required.
58 =item B<< $method->name >>
60 Returns the conflicting method's name, as provided to the constructor.
62 =item B<< $method->roles >>
64 Returns the roles that generated this conflicting method, as provided to the
67 =item B<< $method->roles_as_english_list >>
69 Returns the roles that generated this conflicting method as an English list.
75 See L<Moose/BUGS> for details on reporting bugs.