summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoy <doy@tozt.net>2009-04-26 22:54:01 -0500
committerdoy <doy@tozt.net>2009-04-26 22:54:01 -0500
commit4671d44db2cd128f64cd0607c0fce2daaa291880 (patch)
tree2c510d4647dfe32386b3926deb789e99a5675c49
parentc64f42cd095808615929e685c0485e54c52a65b5 (diff)
downloadbot-games-4671d44db2cd128f64cd0607c0fce2daaa291880.tar.gz
bot-games-4671d44db2cd128f64cd0607c0fce2daaa291880.zip
don't include a default formatter, since it will (probably) never be used
-rw-r--r--lib/Bot/Games/Trait/Method/Formatted.pm14
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/Bot/Games/Trait/Method/Formatted.pm b/lib/Bot/Games/Trait/Method/Formatted.pm
index f5e6415..0145bea 100644
--- a/lib/Bot/Games/Trait/Method/Formatted.pm
+++ b/lib/Bot/Games/Trait/Method/Formatted.pm
@@ -5,18 +5,8 @@ has formatter => (
is => 'rw',
isa => 'CodeRef',
default => sub { sub {
- my $self = shift;
- my ($to_print) = @_;
- if (blessed $to_print) {
- $to_print = "$to_print";
- }
- elsif (ref($to_print) && ref($to_print) eq 'ARRAY') {
- $to_print = join ', ', @$to_print;
- }
- elsif (!$to_print) {
- $to_print = 'false';
- }
- return $to_print;
+ warn "no formatter specified!";
+ return @_;
} },
);