diff options
author | Jesse Luehrs <doy@tozt.net> | 2009-09-04 17:20:08 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2009-09-04 17:20:08 -0500 |
commit | f5437ccff7fc47fd7ba74b470f0ab0fa85e9c4d5 (patch) | |
tree | 6f2d210a47b590e8390b96b7bcd4fdd99f901d73 | |
parent | d8bb77d12cf3856a8147852d58e8df9da402e329 (diff) | |
download | moosex-abc-f5437ccff7fc47fd7ba74b470f0ab0fa85e9c4d5.tar.gz moosex-abc-f5437ccff7fc47fd7ba74b470f0ab0fa85e9c4d5.zip |
replace mx-ah with the new native trait stuff
-rw-r--r-- | dist.ini | 3 | ||||
-rw-r--r-- | lib/MooseX/ABC/Trait/Class.pm | 9 |
2 files changed, 5 insertions, 7 deletions
@@ -8,6 +8,5 @@ abstract = abstract base classes for Moose [@Classic] [Prereq] -Moose = 0.86 -MooseX::AttributeHelpers = 0 +Moose = 0.90 Test::Exception = 0 diff --git a/lib/MooseX/ABC/Trait/Class.pm b/lib/MooseX/ABC/Trait/Class.pm index afa4323..edc91d2 100644 --- a/lib/MooseX/ABC/Trait/Class.pm +++ b/lib/MooseX/ABC/Trait/Class.pm @@ -1,6 +1,5 @@ package MooseX::ABC::Trait::Class; use Moose::Role; -use MooseX::AttributeHelpers; =head1 NAME @@ -14,14 +13,14 @@ dying if a subclass doesn't implement the required methods. =cut has required_methods => ( - metaclass => 'Collection::Array', + traits => ['Array'], is => 'ro', isa => 'ArrayRef[Str]', default => sub { [] }, auto_deref => 1, - provides => { - push => 'add_required_method', - empty => 'has_required_methods', + handles => { + add_required_method => 'push', + has_required_methods => 'count', }, ); |