From: Shawn M Moore Date: Sun, 25 May 2008 01:47:49 +0000 (+0000) Subject: Replace method_provider with a ( future :( ) requires_attr X-Git-Tag: 0.18_01~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dbd51f3079bc5debaa79062c558ac4f47e8d374b;p=gitmo%2FMooseX-AttributeHelpers.git Replace method_provider with a ( future :( ) requires_attr --- diff --git a/lib/MooseX/AttributeHelpers/Trait/Base.pm b/lib/MooseX/AttributeHelpers/Trait/Base.pm index 9ab3f6e..6da6eae 100644 --- a/lib/MooseX/AttributeHelpers/Trait/Base.pm +++ b/lib/MooseX/AttributeHelpers/Trait/Base.pm @@ -21,11 +21,8 @@ has 'provides' => ( # provide a Class or Role which we can # collect the method providers from -has 'method_provider' => ( - is => 'ro', - isa => 'ClassName', - predicate => 'has_method_provider', -); + +# requires_attr 'method_provider' # or you can provide a HASH ref of anon subs # yourself. This will also collect and store