From: Shawn M Moore Date: Sat, 30 May 2009 22:43:14 +0000 (-0400) Subject: Method::Required->name is required X-Git-Tag: 0.80~32 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2ee514b1f22357435ed4271f8a9f9d1dd175e508;p=gitmo%2FMoose.git Method::Required->name is required --- diff --git a/lib/Moose/Meta/Role/Method/Required.pm b/lib/Moose/Meta/Role/Method/Required.pm index e379123..9b56548 100644 --- a/lib/Moose/Meta/Role/Method/Required.pm +++ b/lib/Moose/Meta/Role/Method/Required.pm @@ -17,7 +17,10 @@ our $AUTHORITY = 'cpan:STEVAN'; # This is not a Moose::Meta::Role::Method because it has no implementation, it # is just a name -__PACKAGE__->meta->add_attribute('name' => (reader => 'name')); +__PACKAGE__->meta->add_attribute('name' => ( + reader => 'name', + required => 1, +)); sub new { shift->_new(@_) }