diff options
author | Jesse Luehrs <doy@tozt.net> | 2009-10-31 15:16:49 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2009-10-31 15:28:04 -0500 |
commit | 188ad8e49c1fa2802eaa55b3d4ae978f2c58c23c (patch) | |
tree | 89333ab23955cceb45dada36ffe89a7a23c855b3 /lib/Bot/Games/Trait/Class/Formatted.pm | |
parent | da36dca6178721b1c91b5e680d01e2595c2b1801 (diff) | |
download | bot-games-188ad8e49c1fa2802eaa55b3d4ae978f2c58c23c.tar.gz bot-games-188ad8e49c1fa2802eaa55b3d4ae978f2c58c23c.zip |
convert Bot::Games to use IM::Engine::Plugin::Commands
Diffstat (limited to 'lib/Bot/Games/Trait/Class/Formatted.pm')
-rw-r--r-- | lib/Bot/Games/Trait/Class/Formatted.pm | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/Bot/Games/Trait/Class/Formatted.pm b/lib/Bot/Games/Trait/Class/Formatted.pm deleted file mode 100644 index 6c3092a..0000000 --- a/lib/Bot/Games/Trait/Class/Formatted.pm +++ /dev/null @@ -1,26 +0,0 @@ -package Bot::Games::Trait::Class::Formatted; -use Bot::Games::OO::Role; - -has default_formatters => ( - metaclass => 'Collection::ImmutableHash', - is => 'ro', - isa => 'HashRef[CodeRef]', - builder => '_build_default_formatters', - provides => { - get => 'formatter_for', - exists => 'has_formatter', - keys => 'formattable_tcs', - }, -); - -sub _build_default_formatters { - { - 'ArrayRef' => sub { join ', ', @{ shift() } }, - 'Bool' => sub { return shift() ? 'true' : 'false' }, - 'Object' => sub { shift() . "" }, - } -} - -no Bot::Games::OO::Role; - -1; |