Skip to content

Commit

Permalink
Use native traits
Browse files Browse the repository at this point in the history
  • Loading branch information
sorear committed Apr 13, 2010
1 parent ceb5097 commit 08587bd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/TAEB/AI/Behavioral/Personality.pm
Expand Up @@ -20,14 +20,14 @@ has behavior => (
);

has behaviors => (
metaclass => 'Collection::Hash',
traits => ['Hash'],
is => 'ro',
isa => 'HashRef[TAEB::AI::Behavioral::Behavior]',
lazy => 1,
provides => {
get => 'get_behavior',
set => '_set_behavior',
delete => '_delete_behavior',
handles => {
get_behavior => 'get',
_set_behavior => 'set',
_delete_behavior => 'delete',
},
default => sub {
my $self = shift;
Expand Down

0 comments on commit 08587bd

Please sign in to comment.