diff options
author | Jesse Luehrs <doy@tozt.net> | 2009-06-01 02:03:35 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2009-06-01 02:03:35 -0500 |
commit | e68921f423402cf9e128610dcc1556d72a448fad (patch) | |
tree | d398267265a356109a03f96fa560f083afa3d866 /lib | |
parent | b25a41e690cfeea828e4a06d3c7cefabc3113898 (diff) | |
download | bot-games-e68921f423402cf9e128610dcc1556d72a448fad.tar.gz bot-games-e68921f423402cf9e128610dcc1556d72a448fad.zip |
use the actual Bool formatter from the metaclass instead of duplicating
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Bot/Games/Game.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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', |