From: Shawn M Moore Date: Sat, 30 May 2009 19:05:34 +0000 (-0400) Subject: We need to say new -> _new? what's the better way of doing this? X-Git-Tag: 0.80~51 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bc336e8e9f7aaa7f2a1f05f87f82c1e7117a3b80;p=gitmo%2FMoose.git We need to say new -> _new? what's the better way of doing this? --- diff --git a/lib/Moose/Meta/Role/Method/Required.pm b/lib/Moose/Meta/Role/Method/Required.pm index 70e2186..f1680ba 100644 --- a/lib/Moose/Meta/Role/Method/Required.pm +++ b/lib/Moose/Meta/Role/Method/Required.pm @@ -19,6 +19,8 @@ our $AUTHORITY = 'cpan:STEVAN'; __PACKAGE__->meta->add_attribute('name' => (reader => 'name')); +sub new { shift->_new(@_) } + 1; __END__