From f5437ccff7fc47fd7ba74b470f0ab0fa85e9c4d5 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 4 Sep 2009 17:20:08 -0500 Subject: replace mx-ah with the new native trait stuff --- dist.ini | 3 +-- lib/MooseX/ABC/Trait/Class.pm | 9 ++++----- 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', }, ); -- cgit v1.2.3-54-g00ecf