projects
/
catagits/catbook-code.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
4344b5f
)
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
patch
|
blob
|
blame
|
history
diff --git
a/lib/LolCatalyst/Lite/Snippet.pm
b/lib/LolCatalyst/Lite/Snippet.pm
index
01edbe0
..
abccf30
100644
(file)
--- a/
lib/LolCatalyst/Lite/Snippet.pm
+++ b/
lib/LolCatalyst/Lite/Snippet.pm
@@
-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;