FreeBSD.software
Home/devel/p5-MooseX-Role-WarnOnConflict

p5-MooseX-Role-WarnOnConflict

0.01devel

Warn if classes override role methods without excluding them

When using Moose::Role, a class which provides a method a role provides will silently override that method. This can cause strange, hard-to-debug errors when the role's methods are not called. Simply use MooseX::Role::WarnOnConflict instead of Moose::Role and overriding a role's method becomes a composition-time warning. See the synopsis for a resolution.

$pkg install p5-MooseX-Role-WarnOnConflict
metacpan.org/dist/MooseX-Role-WarnOnConflict
Origin
devel/p5-MooseX-Role-WarnOnConflict
Size
18.0KiB
License
ART20
Maintainer
sunpoet@FreeBSD.org
Dependencies
2 packages
Required by
1 packages

Dependencies (2)

Required By (1)