summaryrefslogtreecommitdiff
path: root/lib/custodian
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
commitf40d0a37c6b99e88bb1ffc66e3421bf4e51a55e9 (patch)
treec002fcc42b754d7d4bb2c08e8dc3f9d512378d12 /lib/custodian
parente3d9a6ad6cb2c1463915d356172e5aeb92c4e26f (diff)
The settings object will let you retrieve an arbitrary key.
Diffstat (limited to 'lib/custodian')
-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
#