summaryrefslogtreecommitdiff
path: root/lib/custodian/settings.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-12-12 14:14:03 +0000
committerSteve Kemp <steve@steve.org.uk>2012-12-12 14:14:03 +0000
commit2bf306af28e07feab9efd81e0bb1d67b74eee8d2 (patch)
tree221af20b501f3cec249e35676004e6eefc8bb423 /lib/custodian/settings.rb
parent2327ff5ec0d848577ea9708e405dc7c70bf31537 (diff)
The settings object will let you retrieve an arbitrary key.
Diffstat (limited to 'lib/custodian/settings.rb')
-rw-r--r--lib/custodian/settings.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/custodian/settings.rb b/lib/custodian/settings.rb
index 62006c0..d460e9a 100644
--- a/lib/custodian/settings.rb
+++ b/lib/custodian/settings.rb
@@ -71,6 +71,10 @@ module Custodian
end
+ def key( name )
+ _load() unless( _loaded? )
+ @settings[name]
+ end
#