2 package Moose::Meta::Role::Method::Conflicting;
9 use base qw(Moose::Meta::Role::Method::Required);
11 __PACKAGE__->meta->add_attribute('roles' => (
16 sub roles_as_english_list {
18 Moose::Util::english_list( map { q{'} . $_ . q{'} } @{ $self->roles } );
23 # ABSTRACT: A Moose metaclass for conflicting methods in Roles
33 C<Moose::Meta::Role::Method::Conflicting> is a subclass of
34 L<Moose::Meta::Role::Method::Required>.
40 =item B<< Moose::Meta::Role::Method::Conflicting->new(%options) >>
42 This creates a new type constraint based on the provided C<%options>:
48 The method name. This is required.
52 The list of role names that generated the conflict. This is required.
56 =item B<< $method->name >>
58 Returns the conflicting method's name, as provided to the constructor.
60 =item B<< $method->roles >>
62 Returns the roles that generated this conflicting method, as provided to the
65 =item B<< $method->roles_as_english_list >>
67 Returns the roles that generated this conflicting method as an English list.
73 See L<Moose/BUGS> for details on reporting bugs.