From 8177ff4ccdcc04b636b52aeeb1a0b3d901a60c54 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 1 Jun 2009 02:56:04 -0500 Subject: use 'Bool' as the formatter rather than manually looking it up --- lib/Bot/Games/Game/Spook.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Bot/Games/Game/Spook.pm') diff --git a/lib/Bot/Games/Game/Spook.pm b/lib/Bot/Games/Game/Spook.pm index f15ddfa..cfb577f 100644 --- a/lib/Bot/Games/Game/Spook.pm +++ b/lib/Bot/Games/Game/Spook.pm @@ -12,7 +12,7 @@ command valid_move => sub { my ($move) = @_; return is_subpermutation($self->state, uc($move)) && length($self->state) + 1 == length($move); -}, formatter => __PACKAGE__->meta->formatter_for('Bool'); +}, formatter => 'Bool'; command valid_word_from_state => sub { my $self = shift; @@ -20,7 +20,7 @@ command valid_word_from_state => sub { $word = uc join '', sort split(//, $word); my $state = join '', sort split(//, $self->state); return $word eq $state; -}, formatter => __PACKAGE__->meta->formatter_for('Bool'); +}, formatter => 'Bool'; __PACKAGE__->meta->make_immutable; no Bot::Games::OO::Game; -- cgit v1.2.3-54-g00ecf