factor LOLCAT translator out into its own file
[catagits/catbook-code.git] / lib / LolCatalyst / Lite / Translator / LOLCAT.pm
diff --git a/lib/LolCatalyst/Lite/Translator/LOLCAT.pm b/lib/LolCatalyst/Lite/Translator/LOLCAT.pm
new file mode 100644 (file)
index 0000000..0533e0c
--- /dev/null
@@ -0,0 +1,14 @@
+package LolCatalyst::Lite::Translator::LOLCAT;
+
+use Moose;
+use Acme::LOLCAT ();
+use namespace::clean -except => 'meta';
+
+sub translate {
+  my ($self, $text) = @_;
+  return Acme::LOLCAT::translate($text);
+}
+
+__PACKAGE__->meta->make_immutable;
+
+1;