switch translator hashref from public to protected
Matt S Trout [Fri, 6 Feb 2009 18:30:38 +0000 (18:30 +0000)]
lib/LolCatalyst/Lite/Translator.pm

index ca6c22b..aada7fc 100644 (file)
@@ -9,11 +9,11 @@ has 'default_target' => (
   is => 'ro', isa => 'Str', required => 1, default => 'LOLCAT'
 );
 
-has 'translators' => (
+has '_translators' => (
   is => 'ro', isa => 'HashRef', lazy_build => 1
 );
 
-sub _build_translators {
+sub _build__translators {
   my ($self) = @_;
   my $base = __PACKAGE__;
   my $mp = Module::Pluggable::Object->new(
@@ -36,7 +36,7 @@ sub translate {
 
 sub translate_to {
   my ($self, $target, $text) = @_;
-  $self->translators->{$target}->translate($text);
+  $self->_translators->{$target}->translate($text);
 }
 
 __PACKAGE__->meta->make_immutable;