my $error = '';
- my @conflicts = grep { $_->is_conflict } @missing;
+ my @conflicts = grep { $_->isa('Moose::Meta::Role::Method::Conflicting') } @missing;
if (@conflicts) {
my $conflict = $conflicts[0];
required => 1,
));
-sub is_conflict { 1 }
-
1;
__END__
Returns the roles that generated this conflicting method, as provided to the
constructor.
-=item B<< $method->is_conflict >>
-
-Returns whether the method requirement is due to a conflict. By default for
-this class, it's true.
-
=back
=head1 BUGS
sub new { shift->_new(@_) }
-sub is_conflict { 0 }
-
1;
__END__
Returns the required method's name, as provided to the constructor.
-=item B<< $method->is_conflict >>
-
-Returns whether the method requirement is due to a conflict. By default for
-this class, it's false.
-
=back
=head1 BUGS