diff options
author | Eric Wong <normalperson@yhbt.net> | 2014-04-04 23:31:46 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2014-04-05 06:55:35 +0000 |
commit | 10810b5c3e7846f60b787dd4dee81a610b26a795 (patch) | |
tree | 5eb779c9f9e12440660c3cc1f75e8e3cb0938802 /lib/PublicInbox/Config.pm | |
parent | 8d20886bd0638561ddd677a4e19a4f01022bdfde (diff) | |
download | public-inbox-10810b5c3e7846f60b787dd4dee81a610b26a795.tar.gz |
Hopefully this makes for less ad-hoc hash access in case our config format changes.
Diffstat (limited to 'lib/PublicInbox/Config.pm')
-rw-r--r-- | lib/PublicInbox/Config.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index 9ba4ad32..b13e5cec 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -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; |