From: Jesse Luehrs Date: Tue, 11 May 2010 02:15:11 +0000 (-0500) Subject: add HasMethods to Role explicitly, since it's no longer in Package X-Git-Tag: 1.04~12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=72276e04fbf19fe6bf5ca7af8ca64465bac8bd32;p=gitmo%2FMoose.git add HasMethods to Role explicitly, since it's no longer in Package --- diff --git a/Changes b/Changes index d5a58bd..789a9fa 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,12 @@ Also see Moose::Manual::Delta for more details of, and workarounds for, noteworthy changes. + [API CHANGES] + + * Packages and modules no longer have methods - this functionality was + moved back up into Moose::Meta::Class and Moose::Meta::Role individually + (through the Class::MOP::Mixin::HasMethods mixin) (doy). + [BUG FIXES] * Fix has '+attr' in Roles to explode immediately, rather than when the role diff --git a/lib/Moose/Meta/Role.pm b/lib/Moose/Meta/Role.pm index adabdeb..deed8f5 100644 --- a/lib/Moose/Meta/Role.pm +++ b/lib/Moose/Meta/Role.pm @@ -20,7 +20,9 @@ use Moose::Meta::Role::Method::Required; use Moose::Meta::Role::Method::Conflicting; use Moose::Util qw( ensure_all_roles ); -use base 'Class::MOP::Module', 'Class::MOP::Mixin::HasAttributes'; +use base 'Class::MOP::Module', + 'Class::MOP::Mixin::HasAttributes', + 'Class::MOP::Mixin::HasMethods'; ## ------------------------------------------------------------------ ## NOTE: