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 --- lib/MooseX/ABC/Trait/Class.pm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib') 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