From: Shawn M Moore Date: Sun, 31 May 2009 02:42:25 +0000 (-0400) Subject: Make roles required X-Git-Tag: 0.80~23 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=44ed889183b81ea8777d2b7ffef8c4ef90d31f22;p=gitmo%2FMoose.git Make roles required --- diff --git a/lib/Moose/Meta/Role/Method/Conflicting.pm b/lib/Moose/Meta/Role/Method/Conflicting.pm index 73eeadd..5ddd17d 100644 --- a/lib/Moose/Meta/Role/Method/Conflicting.pm +++ b/lib/Moose/Meta/Role/Method/Conflicting.pm @@ -10,7 +10,10 @@ our $VERSION = '0.79'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; -__PACKAGE__->meta->add_attribute('roles' => (reader => 'roles')); +__PACKAGE__->meta->add_attribute('roles' => ( + reader => 'roles', + required => 1, +)); sub is_conflict { 1 }