add missing method to make 'to' action work
Matt S Trout [Sat, 7 Mar 2009 20:29:30 +0000 (15:29 -0500)]
lib/LolCatalyst/Lite/Snippet.pm

index 01edbe0..abccf30 100644 (file)
@@ -12,6 +12,11 @@ sub translated {
   $self->_translator->translate($self->text);
 }
 
+sub translated_to {
+  my ($self, $to) = @_;
+  $self->_translator->translate_to($to, $self->text);
+}
+
 __PACKAGE__->meta->make_immutable;
 
 1;