]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Config.pm
config: add shortcut for retrieving elements
[public-inbox.git] / lib / PublicInbox / Config.pm
index 9ba4ad32901f501d011c6a88f531914471d98e09..b13e5cecdeb79ef0b1861577b886448fec4ccbf2 100644 (file)
@@ -38,6 +38,12 @@ sub lookup {
        \%rv;
 }
 
+sub get {
+       my ($self, $listname, $key) = @_;
+
+       $self->{"publicinbox.$listname.$key"};
+}
+
 sub default_file {
        my $f = $ENV{PI_CONFIG};
        return $f if defined $f;