summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-09-04 17:20:08 -0500
committerJesse Luehrs <doy@tozt.net>2009-09-04 17:20:08 -0500
commitf5437ccff7fc47fd7ba74b470f0ab0fa85e9c4d5 (patch)
tree6f2d210a47b590e8390b96b7bcd4fdd99f901d73
parentd8bb77d12cf3856a8147852d58e8df9da402e329 (diff)
downloadmoosex-abc-f5437ccff7fc47fd7ba74b470f0ab0fa85e9c4d5.tar.gz
moosex-abc-f5437ccff7fc47fd7ba74b470f0ab0fa85e9c4d5.zip
replace mx-ah with the new native trait stuff
-rw-r--r--dist.ini3
-rw-r--r--lib/MooseX/ABC/Trait/Class.pm9
2 files changed, 5 insertions, 7 deletions
diff --git a/dist.ini b/dist.ini
index ca81dfa..a30c377 100644
--- a/dist.ini
+++ b/dist.ini
@@ -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',
},
);