From e68921f423402cf9e128610dcc1556d72a448fad Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 1 Jun 2009 02:03:35 -0500 Subject: use the actual Bool formatter from the metaclass instead of duplicating --- lib/Bot/Games/Game.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Bot/Games/Game.pm b/lib/Bot/Games/Game.pm index 6d0c29c..088a906 100644 --- a/lib/Bot/Games/Game.pm +++ b/lib/Bot/Games/Game.pm @@ -39,7 +39,7 @@ has players => ( command => 1, ); command 'num_players'; -command 'has_player', formatter => sub { $_[0] ? 'true' : 'false' }; +command 'has_player', formatter => __PACKAGE__->meta->formatter_for('Bool'); has start_time => ( is => 'ro', -- cgit v1.2.3-54-g00ecf